Socket
Socket
Sign inDemoInstall

disposable-email

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    disposable-email

Disposable email domains


Version published
Weekly downloads
2.3K
decreased by-29.25%
Maintainers
1
Install size
31.3 kB
Created
Weekly downloads
 

Readme

Source

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/andreis/disposable/master/domains.txt
  • JSON array

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

curl https://raw.githubusercontent.com/andreis/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');
// true

disposable.validate('foo@gmail.com');
// true

disposable.validate('gmail.com', console.log);
// undefined
// null true
  • Go
import "github.com/andreis/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

CDN

Production: https://rawcdn.githack.com/andreis/disposable/master/domains.json

Development: https://raw.githack.com/andreis/disposable/master/domains.json

by: https://raw.githack.com/

Keywords

FAQs

Last updated on 01 Feb 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc