JSPM

disposable-email

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5138
  • Score
    100M100P100Q167501F
  • License MIT

Disposable email domains

Package Exports

  • disposable-email

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (disposable-email) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Disposable email domains

npm GoDoc

A collection of domains for disposable email services like 10MinuteMail and GuerrillaMail. Also, some 🛠 to make your life easier.

Why?

Use it to validate email addresses on sign up, or just to see how many real email addresses you have in your system.

Usage

  • list

A file containing a sorted list of domains, one per line.

curl https://raw.githubusercontent.com/lavab/disposable/master/domains.txt
  • JSON array

A file containing a sorted array of domains, in JSON format.

curl https://raw.githubusercontent.com/lavab/disposable/master/domains.json
  • javascript

Install the npm package disposable-email. Validate synchronously or with a callback.

npm i --save disposable-email
var disposable = require('disposable-email');

disposable.validate('gmail.com');
// false

disposable.validate('gmail.com', console.log);
// undefined
// null false
  • Go
import "github.com/lavab/disposable"

if disposable.Domain("gmail.com") {
    panic("Uh oh!")
}

Update the list of domains

To update the list of domains run .generate (requires python3), and optionally submit a PR.

$ ./.generate
Fetched 1110 domains
 - 312 domain(s) added
 - 110 domain(s) removed

Credits