1.0.11 • Published 7 years ago

validate-email-hostname v1.0.11

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago