A simple module to validate an e-mail address
Install via NPM:
npm install email-validator
var validator = require("email-validator");
validator.validate("[email protected]"); // true
validator.validate_async("[email protected]", function(err, isValidEmail) {
//Do something with isValidEmail
}); // true
import * as EmailValidator from 'email-validator';
EmailValidator.validate("[email protected]"); // true
EmailValidator.validate_async("[email protected]", ((err, isValidEmail) => {
// Do something with isValidEmail
}));
We would love for you to contribute to email-validator, check the LICENSE
file for more info.
Robert Schultz โ http://cosmicrealms.com โ [email protected]
Distributed under the MIT license. See LICENSE
for more information.