Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

dilli-email-validation

0.1.2 • Public • Published

dilli-email-validation

Official email address validation for Node.js using Dilli Email Validation API(DEVA).

Verify email addresses instantly using DEVA that does the following checks:

  • Format Validation (RFC defined grammar)
  • Mail Exchanger existense (MX records exists or Mail Exchanger is resolvable)
  • Profanity check
  • Email Service Provider (ESP) specific local-part grammar rules
  • Disposable/Temporary email addresses
  • Blacklisted email addresses
  • Role-based email addresses

Sign up for Dilli Email Validation for FREE to get your public API key.

Installation

npm install dilli-email-validation

Use

var Validator = require('dilli-email-validation');
 
var validator = new Validator('deva-pub-key');
validator.validate('emailtotest@domaintotest.com', function(err, response) {
    if (err) {
        // Validation error
        // TODO handle failure
        return;
    }
 
    // response is true if valid, false if invalid
 
    if (response === true) {
        // Email valid
    } else {
        // Email invalid
    }
})

Licence

MIT

install

npm i dilli-email-validation

Downloadsweekly downloads

23

version

0.1.2

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability