Code Monkey home page Code Monkey logo

disposable's Introduction

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('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/

disposable's People

Contributors

anbud avatar andreis avatar flixi avatar smeinecke avatar witoldszpur avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.