JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 115
  • Score
    100M100P100Q77114F
  • License MIT

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

Package Exports

  • is-biz-mail

Readme

Business Email Checker

Build Status Coverage Status Inline docs Known Vulnerabilities Code Climate maintainability

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. PNMP, Yarn etc

npm i @salaros/is-biz-mail # pnpm add @salaros/is-biz-mail

or via Yarn

yarn add @salaros/is-biz-mail

Vanilla

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

<script src="https://cdn.jsdelivr.net/npm/@salaros/is-biz-mail@latest/dist/isBizMail.iife.js"></script>
<script>
    var email = 'foo@nodejs.onmicrosoft.com';
    var result = new isBizMail().isFree(email);
    console.log([email, result]); // (2) ["foo@nodejs.onmicrosoft.com", false], because *.onmicrosoft.com is considered a free domain
</script>

TS / ESM

import IsBizMail from '@salaros/is-biz-mail';
const isBizMail = new IsBizMail();

const email = 'es6@gmail.com';
const result = isBizMail.isFree(email);
console.log([email, result]); // (2) ["es6@gmail.com", true]
// ...

CommonJS, Node.js etc

const IsBizMail = require('@salaros/is-biz-mail');
const isBizMail = new IsBizMail();

const email = 'cjs@yahoo.com';
const result = isBizMail.isFree(email);
console.log([email, result]); // (2) ["cjs@yahoo.com", true]
// ...

Testing: Jest

npm install # pnpm/yarn install
npm test    # pnpm/yarn test

Credits