Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dilli-email-validation

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dilli-email-validation

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

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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 are resolvable)
  • Profanity check
  • Email Service Provider (ESP) specific local-part grammar rules
  • Disposable/Temporary email addresses
  • Blacklisted email addresses

You will need to sign up at https://www.dillilabs.com/products/email-validation-api/ for a 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

Keywords

FAQs

Package last updated on 04 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc