Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvila/validate-email-hostname
Check if the hostname of an email has a MX or A record
https://github.com/mvila/validate-email-hostname
Last synced: about 1 month ago
JSON representation
Check if the hostname of an email has a MX or A record
- Host: GitHub
- URL: https://github.com/mvila/validate-email-hostname
- Owner: mvila
- Created: 2016-03-03T05:49:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-29T04:32:17.000Z (about 7 years ago)
- Last Synced: 2024-04-25T11:41:11.517Z (7 months ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# validate-email-hostname [![npm version](https://img.shields.io/npm/v/validate-email-hostname.svg)](https://www.npmjs.com/package/validate-email-hostname) [![Build status](https://img.shields.io/travis/mvila/validate-email-hostname.svg)](https://travis-ci.org/mvila/validate-email-hostname)
Check if the hostname of an email has a MX or A record.
## Installation
```
npm install --save validate-email-hostname
```## Usage
```javascript
import validateEmailHostname from 'validate-email-hostname';async function example() {
let test1 = await validateEmailHostname('[email protected]');
console.log(test1); // => truelet test2 = await validateEmailHostname('[email protected]');
console.log(test2); // => false
}
```## License
MIT