Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

company-email-validator

bnurbekov135.4kUnlicense1.2.0TypeScript support: included

Provides a fast company / work email validator by checking whether the email domain is in the free email provider list.

email, validation, validator, syntax, company, work

readme

company-email-validator

Good News of the Lord Jesus Christ: https://youtu.be/t1BWSOVNm4A

Provides a fast company / work email validator by checking whether the email domain is in the free email provider list. Note: does not check SMTP servers and MX records currently (i.e. doesn't do deep validation).

version downloads

Made with :heart: by a follower of Jesus Christ

Installation

Install via NPM:

npm install company-email-validator

Install via yarn:

yarn add company-email-validator

Usage

javascript


var CompanyEmailValidator = require("company-email-validator");

CompanyEmailValidator.isCompanyEmail("test@utterly.app"); // true

CompanyEmailValidator.isCompanyEmail("test@gmail.com"); // false

TypeScript


import * as CompanyEmailValidator from 'company-email-validator';

CompanyEmailValidator.isCompanyEmail("test@utterly.app"); // true

CompanyEmailValidator.isCompanyEmail("test@gmail.com"); // false

Contribute

Contributions welcome! Check the LICENSE file for more info.

Meta

Distributed under the unlicense public domain. See LICENSE for more information.

https://github.com/bnurbekov/company-email-validator