simple-email-validation
v1.0.5
Published
> A simple module to validate an e-mail address. It works on 99.99% cases :)
Downloads
1
Readme
simple-email-validaton
A simple module to validate an e-mail address. It works on 99.99% cases :)
Installation
Install via NPM:
npm install simple-email-validation
Usage
javascript
var simpleEmailValidation = require("simple-email-validation");
simpleEmailValidation.validate("[email protected]"); // true
simpleEmailValidation.validate_async("[email protected]", function(err, isValidEmail) {
//Do something with isValidEmail
}); // true
TypeScript
import * as simpleEmailValidation from 'email-validator';
simpleEmailValidation.validate("[email protected]"); // true
simpleEmailValidation.validate_async("[email protected]", ((err, isValidEmail) => {
// Do something with isValidEmail
}));
Contribute
We would love for you to contribute to email-validator, check the LICENSE
file for more info.
Meta
Courtesy Sembiance