# dilli-email-validation

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

Latest version **1.0.0** (published 2019-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install dilli-email-validation
pnpm add dilli-email-validation
yarn add dilli-email-validation
bun add dilli-email-validation
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-09-16 |
| First published | 2018-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dilli Labs |
| Maintainers | dillilabs |
| Keywords | email, address, validation, verify, mailgun, sendgrid, api, dilli, deva |

## Links

- npm: https://www.npmjs.com/package/dilli-email-validation
- Repository: https://github.com/dillilabs/dilli-email-validation
- Homepage: https://www.dillilabs.com/products/email-validation-api/
- Issues: https://github.com/dillilabs/dilli-email-validation/issues
- npm.io page: https://npm.io/package/dilli-email-validation

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-09-16
- 0.1.2 — 2018-10-04
- 0.1.1 — 2018-10-04
- 0.1.0 — 2018-10-04

## README

## dilli-email-validation

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). 

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

```javascript
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

---
_Source: https://npm.io/package/dilli-email-validation · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
