email-autocomplete
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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));
    }
});

Readme

Keywords

none

Package Sidebar

Install

npm i email-autocomplete

Weekly Downloads

63

Version

0.2.0

License

BSD-3-Clause

Unpacked Size

191 kB

Total Files

16

Last publish

Collaborators

  • bartko-s