Fresh list of all free email domain providers. Can be used to check if an email address belongs to a company. Updated weekly
Sometimes you need to know if an email address belongs to a company or is registered with a free email provider. This easy script can tell you. Just call isCompanyEmail
or isFreeEmail
.
All available domains can be found in src folder. They are downloaded from the community maintaned list and updated weekly.
Function | Return value | Example usage |
---|---|---|
isFreeEmail(email: string, emailValidation: IsEmailOptions = {}) |
boolean |
isFreeEmail('john.doe@gmail.com') => true |
isCompanyEmail(email: string, emailValidation: IsEmailOptions = {}) |
boolean |
isCompanyEmail('john.doe@gmail.com') => false |
IsEmailOptions
are available options for email validation from validator library. You can check test folder for usage.
If the the email provided is not valid, false
is always returned.
There are jest
tests which tests basic functionality. Feel free to extend them.
- all-iso-language-codes - List of ISO 639-1, 639-2T, 639-2B and 639-3 codes with translations in all available languages
- expo-video-player - Customizable Video Player controls for Expo
- free-email-domains-list - Fresh list of all free email domain providers. Can be used to check if an email address belongs to a company. Updated weekly