Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bartko-s/email-autocomplete
Email domain autocomplete helper
https://github.com/bartko-s/email-autocomplete
Last synced: 20 days ago
JSON representation
Email domain autocomplete helper
- Host: GitHub
- URL: https://github.com/bartko-s/email-autocomplete
- Owner: bartko-s
- Created: 2018-08-01T14:55:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-13T20:54:49.000Z (about 5 years ago)
- Last Synced: 2024-12-10T04:20:59.514Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Email Autocomplete
[![Donate on PayPal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://paypal.me/stevo4)
[Online DEMO](https://email-autocomplete.stefanbartko.sk/)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
```let suggestedAddreses = EmailAutocomplete.search("test@gm");
```- use UNPKG CDN
see [UNPKG](https://unpkg.com)
## Example usage with jQueryUI autocomplete
```
$('#email-input').autocomplete({
minLength: 3,
source: function (request, response) {
response(EmailAutocomplete.search(request.term));
}
});
```