dilli-email-validation
Advanced tools
+5
-2
| { | ||
| "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", |
+22
-15
| ## 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 @@ }) |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3487
9.55%1
-50%54
14.89%