is-biz-mail
v0.3.3
Published
isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not
Downloads
441
Maintainers
Readme
Business Email Checker
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?
- PHP implementation (PHP 5.4.0+)
- .NET implementation (.NET Standard 2.0+)
🟊🟊🟊 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.
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="https://cdn.jsdelivr.net/npm/is-biz-mail/dist/is-biz-mail.js"></script>
<script>
var result = isBizMail.isValid('[email protected]"');
console.log([email, result]); // (2) ["[email protected]", false]
</script>
ES5 / ES6 module
import isBizMail from 'is-biz-mail';
let result = isBizMail.isFreeMailAddress('[email protected]');
console.log([email, result]); // (2) ["[email protected]", true]
// ...
CommonJS, Node.js etc
const isBizMail = require('is-biz-mail');
let result = isBizMail.isFreeMailAddress('[email protected]');
console.log([email, result]); // (2) ["[email protected]", true]
// ...
Testing: Mocha + Should.js
yarn
yarn test
or via NPM
npm install
npm test # or ./node_modules/.bin/mocha
Credits
- SpamAssasin's 'freemail domains' filter
- SpamAssasin's 'mailcom domains' filter
- Matthieu Moquet's list of disposable emails.