https://github.com/bartko-s/email-autocomplete
Email domain autocomplete helper
https://github.com/bartko-s/email-autocomplete
Last synced: 12 months 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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-13T20:54:49.000Z (over 6 years ago)
- Last Synced: 2025-07-01T18:52:38.363Z (about 1 year 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
[](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));
}
});
```