1.0.11 • Published 7 years ago
validate-email-hostname v1.0.11
validate-email-hostname
Check if the hostname of an email has a MX or A record.
Installation
npm install --save validate-email-hostname
Usage
import validateEmailHostname from 'validate-email-hostname';
async function example() {
let test1 = await validateEmailHostname('steve@apple.com');
console.log(test1); // => true
let test2 = await validateEmailHostname('nobody@ynvhunb87cjd.fr');
console.log(test2); // => false
}
License
MIT