Skip to content

Commit

Permalink
Plop
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Mar 4, 2013
0 parents commit 42f39da
Show file tree
Hide file tree
Showing 10 changed files with 137 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
node_modules
npm-*.log
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


Sources
-------

[TorVPN](http://torvpn.com/temporaryemail.html)
```javascript
$('td', 'table:last').map(function(){
return this.innerText;
}).toArray();
```

[BloggingWV](http://www.bloggingwv.com/big-list-of-disposable-temporary-email-services/)
```javascript
Array.prototype.slice.call(document.querySelectorAll('.entry > ul > li a')).map(function(el){return el.innerText});
```

Regenerate library from list.js
-------------------------------

./gen.js
3 changes: 3 additions & 0 deletions gen.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

require('lib/generator')();
19 changes: 19 additions & 0 deletions lib/loader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var cjson = require('cjson');
var p = require('path');
var _ = require('lodash');

/**
* Load and make an uniq list of throwable email domain
* @type {Object}
*/
var loader = {
getList: function(){
return _.compose(_.flatten, _.uniq)(this.getLists());
},

getLists: function(){
return cjson.load(p.resolve(__dirname, '../list.json'));
}
};

module.exports = loader;
8 changes: 8 additions & 0 deletions list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
// http://torvpn.com/temporaryemail.html
["0-mail.com","0815.ru","0clickemail.com","10minutemail.com","20minutemail.com","2prong.com","30minutemail.com","3d-painting.com","4warding.com","4warding.net","4warding.org","60minutemail.com","amilegit.com","anonbox.net","anonymbox.com","antispam.de","beefmilk.com","binkmail.com","bio-muesli.net","bobmail.info","bofthew.com","brefmail.com","bsnow.net","bugmenot.com","bumpymail.com","cosmorph.com","courrieltemporaire.com","cubiclink.com","curryworld.de","cust.in","dacoolest.com","dandikmail.com","dayrep.com","deadaddress.com","despam.it","devnullmail.com","discardmail.com","discardmail.de","disposemail.com","dispostable.com","dodgeit.com","dodgit.com","dodgit.org","donemail.ru","dontreg.com","dontsendmespam.de","dump-email.info","dumpyemail.com","e4ward.com","email60.com","emailigo.de","emailinfive.com","emailmiser.com","emailsensei.com","emailtemporario.com.br","emailwarden.com","emailx.at.hm","fakeinbox.com","fakeinformation.com","fastacura.com","filzmail.com","fizmail.com","fr33mail.info","get1mail.com","get2mail.fr","getonemail.com","getonemail.net","gishpuppy.com","great-host.in","guerillamail.com","guerrillamail.com","guerrillamailblock.com","h.mintemail.com","haltospam.com","hochsitze.com","hotpop.com","hulapla.de","ieatspam.eu","ieatspam.info","imails.info","incognitomail.com","incognitomail.net","incognitomail.org","insorg-mail.info","ipoo.org","jetable.com","jetable.net","jetable.org","jnxjn.com","junk1e.com","keepmymail.com","kir.ch.tc","klzlk.com","kulturbetrieb.info","lhsdv.com","litedrop.com","lol.ovpn.to","lookugly.com","lopl.co.cc","m4ilweb.info","mail-temporaire.fr","mail.by","mail4trash.com","mailcatch.com","maileater.com","mailexpire.com","mailin8r.com","mailinator.com","mailinator.net","mailinator2.com","mailme.ir","mailme.lv","mailmetrash.com","mailnator.com","mailnesia.com","mailnull.com","mailslite.com","mailzilla.org","mbx.cc","meltmail.com","messagebeamer.de","mierdamail.com","mintemail.com","moburl.com","monemail.fr.nf","msa.minsmail.com","mt2009.com","mypartyclip.de","myphantomemail.com","mytrashmail.com","nepwk.com","no-spam.ws","nobulk.com","noclickemail.com","nogmailspam.info","nomail2me.com","nomorespamemails.com","nospam4.us","nospamfor.us","nospamthanks.info","notmailinator.com","nowmymail.com","nus.edu.sg","nwldx.com","onewaymail.com","online.ms","ovpn.to","owlpic.com","pjjkp.com","politikerclub.de","pookmail.com","prtnx.com","qq.com","quickinbox.com","recode.me","regbypass.com","rmqkr.net","rppkn.com","rtrtr.com","s0ny.net","safe-mail.net","safetymail.info","safetypost.de","sandelf.de","saynotospams.com","selfdestructingmail.com","sendspamhere.com","sharklasers.com","shitmail.me","skeefmail.com","slopsbox.com","smellfear.com","snakemail.com","sofimail.com","sofort-mail.de","sogetthis.com","spam.la","spam.su","spamavert.com","spambob.net","spambob.org","spambog.com","spambog.de","spambog.ru","spambox.info","spambox.irishspringrealty.com","spambox.us","spamcero.com","spamday.com","spamfree24.com","spamfree24.de","spamfree24.eu","spamfree24.info","spamfree24.net","spamfree24.org","spamgourmet.com","spamherelots.com","spamhole.com","spamify.com","spaminator.de","spamkill.info","spaml.com","spaml.de","spammotel.com","spamobox.com","spamspot.com","spamthis.co.uk","spamthisplease.com","supergreatmail.com","supermailer.jp","suremail.info","teewars.org","teleworm.com","tempalias.com","tempe-mail.com","tempemail.biz","tempemail.com","tempemail.net","tempinbox.co.uk","tempinbox.com","tempmail.it","tempmail2.com","tempomail.fr","temporarioemail.com.br","temporaryemail.net","temporaryinbox.com","thanksnospam.info","thankyou2010.com","thisisnotmyrealemail.com","throwawayemailaddress.com","tmailinator.com","tradermail.info","trash-amil.com","trash-mail.com","trash-mail.de","trash2009.com","trashemail.de","trashmail.at","trashmail.com","trashmail.net","trashmail.ws","trashmailer.com","trashymail.com","trashymail.net","trillianpro.com","tyldd.com","uggsrock.com","veryrealemail.com","webm4il.info","wegwerfemail.de","wh4f.org","whyspam.me","willselfdestruct.com","wuzupmail.net","yopmail.com","yuurok.com","zehnminutenmail.de","zippymail.info","zoaxe.com"],
// http://www.bloggingwv.com/big-list-of-disposable-temporary-email-services/
["10minutemail.com","disposeamail.com","dontreg.com","e4ward.com","guerrillamail.com","inbox2.info","jetable.com","kasmail.com","killmail.net","maileater.com","mailexpire.com","mailinator.com","mailmoat.com","mytrashmail.com","netmails.net","noclickemail.com","nullbox.info","pookmail.com","shortmail.net","sneakemail.com","spambob.com","spambob.org","spambox.info","spambox.org","spambox.us","spamex.com","spamfree24.net","spamfree24.org","spamgourmet.com","spamhole.com","spammotel.com","tempinbox.com","temporaryforwarding.com","temporaryinbox.com","trashmail.net","xemaps.com","yopmail.com"],
// Manual
["getairmail.com", "33mail.com"]
]
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "mailchecker",
"version": "0.1.0",
"description": "",
"main": "platform/node/",
"scripts": {
"test": "grunt test"
},
"repository": {
"type": "git",
"url": "git://github.com/FGRibreau/mailchecker.git"
},
"keywords": [
"email",
"domains",
"disposable"
],
"author": "Francois-Guillaume Ribreau <npm@fgribreau.com> (http://fgribreau.com)",
"license": "BSD",
"dependencies": {
"lodash": "~1.0.1",
"cjson": "~0.2.1"
},
"devDependencies": {
"nodeunit": "~0.7.4",
"mocha": "~1.8.1",
"should": "~1.2.2"
}
}
9 changes: 9 additions & 0 deletions platform/node/index.tmpl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* Usage
*
* require('t')
* @return {[type]} [description]
*/
module.exports = function mailChecker(email, options){

};
Empty file added test/isTemporaryEmail.test.js
Empty file.
34 changes: 34 additions & 0 deletions test/loader.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
var _ = require('lodash');
var loader = null;
var t = require('assert');

suite('Loader', function(){
setup(function(){
loader = require('../lib/loader');
});

suite('#getLists', function(){
test('should return an array', function(){
t.ok(_.isArray(loader.getLists()));
});

test('should return an array of array', function(){
loader.getLists().forEach(function(v, i){
t.ok(_.isArray(v), "index "+i);
});
});
});

suite('#getList', function(){
test('should return an array', function(){
t.ok(_.isArray(loader.getList()));
});

test('should return an array of string', function(){
loader.getList().forEach(function(v, i){
t.ok(_.isString(v), "index "+i);
});
});
});

});
11 changes: 11 additions & 0 deletions test/make.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
suite('Array', function(){
setup(function(){
// ...
});

suite('#indexOf()', function(){
test('should return -1 when not present', function(){
[1,2,3].indexOf(5).should.equal(-1);
});
});
});

0 comments on commit 42f39da

Please sign in to comment.