DEV Community

Cover image for Validate Disposable Email with Regex.
Mayank
Mayank

Posted on

Validate Disposable Email with Regex.

Validate Email

Validate email is not only check if email has @ of proper tld. many users create fake account using proxy or disposable email id's and if you want to restrict those user to sign up using fake account or invalid proxy email then you are at right place.

Use the below package and configure in your code for close to accurate validity check of your user email.

Install using npm

npm i advance-validate-email
Enter fullscreen mode Exit fullscreen mode

Methods & Options

const validate = require("advance-validate-email");

validate("john-doe@gmail.com"); // true
validate("john-doe@mailsac.com"); // false
validate("john-doe@mailinator.com"); // false
Enter fullscreen mode Exit fullscreen mode

If you like it

You can buy me coffee
https://www.buymeacoffee.com/mayankjhawar

Support me at Patreon
https://patreon.com/mayank120

License

MIT

Oldest comments (0)