validate-email-hostname
1.0.11 • Public • Published 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);
let test2 = await validateEmailHostname('nobody@ynvhunb87cjd.fr');
console.log(test2);
}
License
MIT
Package Sidebar
Install
npm i validate-email-hostname
Weekly Downloads