https://github.com/meehow/node-validate-email-dns
Validates email using DNS query and RegExp
https://github.com/meehow/node-validate-email-dns
Last synced: about 1 year ago
JSON representation
Validates email using DNS query and RegExp
- Host: GitHub
- URL: https://github.com/meehow/node-validate-email-dns
- Owner: meehow
- Created: 2015-06-22T18:55:25.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-30T05:23:57.000Z (almost 11 years ago)
- Last Synced: 2025-03-28T23:51:14.590Z (about 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://codeclimate.com/github/meehow/node-validate-email-dns)
[](https://travis-ci.org/meehow/node-validate-email-dns)
Installation
------------
`npm install validate-email-dns`
Usage
-----
```javascript
var co = require('co');
var validate = require('validate-email-dns');
co.wrap(validate)('test@example.com').then(function(correct) {
if (correct) {
console.log('This email address is correct');
} else {
console.log('This email address is incorrect');
}
});
```
Features
--------
* Flow based on generators
* Checks if domain name is registered and has valid `MX` or `A` record
* Domain specific rules for popular email providers