Skip to content

Fresh list of all free email domain providers. Can be used to check if an email address belongs to a company. Updated weekly.

License

Notifications You must be signed in to change notification settings

ihmpavel/free-email-domains-list

Repository files navigation

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.

Usage

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.

Tests

There are jest tests which tests basic functionality. Feel free to extend them.

More packages from me

  • 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

About

Fresh list of all free email domain providers. Can be used to check if an email address belongs to a company. Updated weekly.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages