validate-email-hostname

1.0.11 • Public • Published

validate-email-hostname npm version Build status

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

Package Sidebar

Install

npm i validate-email-hostname

Weekly Downloads

14

Version

1.0.11

License

MIT

Last publish

Collaborators

  • mvila