isBizMail tells you whether a given email address belongs to a free email account provider (gmail.com, yahoo.es, yandex.ru etc) or not.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/assets
.vscode
assets @ 0536a5e
src
test
.gitattributes
.gitignore
.gitmodules
.npmignore
.scrutinizer.yml
.travis.yml
LICENSE
Makefile
README.md
package.json
yarn.lock

README.md

Business Email Checker Build Status Coverage Status Scrutinizer Code Quality

License js type npm npm npm npm bundle size (minified + gzip)

Donate Patreon Donate Paypal Donate Liberapay

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not. Detects around 4-5k domains and sub-domains.

Under the hood isBizMail mostly relies on 3-rd party domain lists created by people and organizations mentioned in Credits section.

Looking for PHP, .NET etc?

🟊🟊🟊 Support this project 🟊🟊🟊

You can support us in a small way, please consider starring and sharing this repo! It helps us getting known and grow the community.

star us

Installation

You can install isBizMail for JavaScript via your prefered dependency manager, e.g. Yarn

yarn add is-biz-mail

or via NPM

npm i is-biz-mail

Vanilla

One of examples of vanilla JavaScript usage might be a simple HTML page:

<script src="path/to/src/javascript/is-biz-mail.js"></script>
<script>
    var email = 'foo@nodejs.onmicrosoft.com"',
        result = isBizMail.isValid(email);
    console.log([email, result]);   // (2) ["foo@nodejs.onmicrosoft.com", false]
</script>

CommonJS / ES5 / ES6 module, Node.js etc

const isBizMail = require('is-biz-mail');

let email = 'es6@live.com',
    result = isBizMail.isFreeMailAddress(email);
console.log([email, result]);   // (2) ["es6@live.com", true]
// ...

Testing: Mocha + Should.js

yarn
yarn test

or via NPM

npm install
npm test    # or ./node_modules/.bin/mocha

Credits