New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 - npm Package Compare versions

Comparing version 0.1.2 to 1.0.0

7

package.json
{
"name": "dilli-email-validation",
"version": "0.1.2",
"description": "Official email address validation for Node.js using Dilli Email Validation API(DEVA)",
"version": "1.0.0",
"description": "Verify email addresses in real-time using Dilli Email Validation API (DEVA).",
"main": "index.js",

@@ -17,2 +17,5 @@ "scripts": {

"validation",
"verify",
"mailgun",
"sendgrid",
"api",

@@ -19,0 +22,0 @@ "dilli",

## dilli-email-validation
Official email address validation for Node.js using Dilli Email Validation API(DEVA).
Verify email address instantly using [Dilli Email Validation API (DEVA)](https://www.dillilabs.com/products/email-validation-api/).
Get FREE API key by [signing up with Dilli Email Validation API](https://deva.dillilabs.com/register).
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
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/Temporary email addresses
- Blacklisted email addresses
- Role-based email addresses
- Disposable (a.k.a Temporary) email addresses
- Known spammer
- Role-based email addresses (ex: help@, support@, info@)
- Safe domains
Sign up for [Dilli Email Validation](https://www.dillilabs.com/products/email-validation-api/) for FREE to get your public API key.
### Installation
```
npm install dilli-email-validation
npm install --save dilli-email-validation
```

@@ -27,3 +27,9 @@

var validator = new Validator('deva-pub-key');
// 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) {

@@ -37,7 +43,8 @@ if (err) {

// response is true if valid, false if invalid
if (response === true) {
// Email valid
// Email valid, DO SOMETHING
console.log('email is valid')
} else {
// Email invalid
// Email invalid, DO SOMETHING
console.log('email is invalid);
}

@@ -44,0 +51,0 @@ })

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