email-checkup

1.0.1 • Public • Published

email-checkup

A email verification package. Disposable email filter and verifies that the email exists.

downloadsBadge versionBadge

Installation

Use the package manager npm to install email-checkup.

npm i email-checkup

Usage

const emailcheckup = require("email-checkup");

emailcheckup({
    mail: "youremailadresse@mail.com", //email to check
    blacklist: false, //by default is true.
    whitelist: ["com", "be", "ch", "fr"], //By default is ["com", "be", "ch", "fr"]
    exists: true //by default is false.
}).then(result => {
    console.log(result) // Return "true" if the email is real. And return "false" if the email is not real Warning, the package does not check if the email exists (for now)!
})

Options

email-checkup supports 3 options :

  • blacklist - true / false (Defaults to true). This option is optional. It enables a blacklist of more than 360 disposable email sites.
  • whitelist - array (Defaults : ["com", "be", "ch", "fr"]). This option is optional. It enables a whitelist of all domains accepted in the email.
  • mail - email (This option is not optional !). Put the email to check.
  • exists - true / false (Defaults to false). This option allows you to check if the email exists !

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Package Sidebar

Install

npm i email-checkup

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

10.9 kB

Total Files

4

Last publish

Collaborators

  • pioupia