Skip to content
Email domain autocomplete helper
TypeScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
tests
.gitignore
.npmignore
README.md
docker-compose.yml
index.html
package.json
tsconfig.json
webpack.config.ts

README.md

Email Autocomplete

Donate on PayPal

Online DEMO

Simple helper which help you add email autocompletion of popular email domain to your mail input fields.

Installation

npm install email-autocomplete --save

Usage

  • ES2015 module import
import * as EmailAutocomplete from 'email-autocomplete';

let suggestedAddreses = EmailAutocomplete.search("test@gm");
  • load via script tag
<script src="dist/email-autocomplete.min.js"></script>

let suggestedAddreses = EmailAutocomplete.search("test@gm");    
  • use UNPKG CDN

see UNPKG

Example usage with jQueryUI autocomplete

$('#email-input').autocomplete({
    minLength: 3,
    source: function (request, response) {
        response(EmailAutocomplete.search(request.term));
    }
});
You can’t perform that action at this time.