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

Verify email addresses in real-time using Dilli Email Validation API (DEVA).

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

dilli-email-validation

Verify email address instantly using Dilli Email Validation API (DEVA). Get FREE API key by signing up with Dilli Email Validation API.

Following checks are performed:

  • Format Validation
  • MX records exist and MX is resolvable
  • Profanity in user or domain part.
  • Email Service Provider (ESP) specific local-part grammar rules
  • Disposable (a.k.a Temporary) email addresses
  • Known spammer
  • Role-based email addresses (ex: help@, support@, info@)
  • Safe domains

Installation

npm install --save dilli-email-validation

Use

var Validator = require('dilli-email-validation');

// To get FREE API key sign-up at:
// https://deva.dillilabs.com/register
// Replace API_KEY below with that API KEY
var validator = new Validator('API_KEY');

// replace emailtotest@domaintotest.com with the 
// actual email address to validate.
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, DO SOMETHING
		console.log('email is valid')
	} else {
		// Email invalid, DO SOMETHING
		console.log('email is invalid);
	}
})

Licence

MIT

Keywords

FAQs

Package last updated on 16 Sep 2019

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