disposable-domains 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/llm.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "context": null,
3
+ "database": [],
4
+ "skip_patterns": [
5
+ "index.json",
6
+ "wildcard.json",
7
+ "package-lock.json"
8
+ ]
9
+ }
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "disposable-domains",
3
+ "version": "1.0.0",
4
+ "description": "A list of disposable email domains",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/tompec/disposable-email-domains.git"
8
+ },
9
+ "license": "MIT",
10
+ "main": "./index.json",
11
+ "scripts": {
12
+ "test": "mocha test/index.js test/wildcard.js",
13
+ "add": "node domain-manager.js --skip-tests",
14
+ "process": "node domain-manager.js --skip-tests",
15
+ "prod": "node domain-manager.js"
16
+ },
17
+ "dependencies": {
18
+ "lodash": "^4.17.21",
19
+ "top-level-domains": "^1.0.2",
20
+ "validator": "^13.7.0"
21
+ },
22
+ "devDependencies": {
23
+ "chai": "^4.3.7",
24
+ "chai-sorted": "^0.2.0",
25
+ "mocha": "^10.2.0"
26
+ }
27
+ }
@@ -0,0 +1,17 @@
1
+ const isFQDN = require('validator').isFQDN;
2
+
3
+ /*
4
+ Check if all the elements are valid domains
5
+ */
6
+ module.exports = function (chai) {
7
+ chai.Assertion.addProperty('isFQDN', function () {
8
+ var obj = this._obj, _this = this;
9
+ obj.forEach(function(o){
10
+ _this.assert(
11
+ isFQDN(o)
12
+ , 'expected "' + o + '" to be a valid domain'
13
+ , 'expected "' + o + '" to not be all lowecase'
14
+ );
15
+ });
16
+ });
17
+ };
@@ -0,0 +1,15 @@
1
+ /*
2
+ Check if all the elements are in lowercase
3
+ */
4
+ module.exports = function (chai) {
5
+ chai.Assertion.addProperty('lowercase', function () {
6
+ var obj = this._obj, _this = this;
7
+ obj.forEach(function(o){
8
+ _this.assert(
9
+ o === o.toLowerCase()
10
+ , 'expected "' + o + '" to be all lowercase'
11
+ , 'expected "' + o + '" to not be all lowercase'
12
+ );
13
+ });
14
+ });
15
+ };
@@ -0,0 +1,20 @@
1
+ var wildcard = require('../../wildcard');
2
+ const _ = require('lodash');
3
+
4
+ /*
5
+ Check if all the elements are in lowercase
6
+ */
7
+ module.exports = function (chai) {
8
+ chai.Assertion.addProperty('notInWildcard', function () {
9
+ this._obj.forEach(domain => {
10
+ if (new RegExp(/(.+(?:\.[\w-]+\.[\w-]+)+)$/).test(domain)) {
11
+ wildcard.forEach(wildcard => {
12
+ this.assert(
13
+ ! _.endsWith(domain, wildcard)
14
+ , '"' + domain + '" is already in the wildcard list'
15
+ );
16
+ })
17
+ }
18
+ });
19
+ });
20
+ };
package/test/index.js ADDED
@@ -0,0 +1,33 @@
1
+ const _ = require('lodash');
2
+ const domains = require('../index');
3
+ const chai = require('chai');
4
+ const expect = chai.expect;
5
+
6
+ chai.use(require("chai-sorted"));
7
+ chai.use(require('./helpers/lowercase'));
8
+ chai.use(require('./helpers/isFQDN'));
9
+ chai.use(require('./helpers/notInWildcard'));
10
+
11
+ describe('Domains', function(){
12
+ it('should be an array', function(){
13
+ expect(domains).to.be.a('array');
14
+ });
15
+ it('should have at least one domain', function(){
16
+ expect(domains).to.have.length.above(0);
17
+ });
18
+ it('should be in alphabetical order', function(){
19
+ expect(domains).to.be.sorted();
20
+ });
21
+ it('should not have duplicates', function(){
22
+ expect(domains).to.deep.equal(_.uniq(domains));
23
+ });
24
+ it('should be lowercase', function(){
25
+ expect(domains).to.be.all.lowercase;
26
+ });
27
+ it('should be a valid domain', function(){
28
+ expect(domains).to.be.all.isFQDN;
29
+ });
30
+ it('should not be a wildcard domain', function(){
31
+ expect(domains).to.be.all.notInWildcard;
32
+ });
33
+ });
@@ -0,0 +1,29 @@
1
+ const _ = require('lodash');
2
+ const domains = require('../wildcard');
3
+ const chai = require('chai');
4
+ const expect = chai.expect;
5
+
6
+ chai.use(require("chai-sorted"));
7
+ chai.use(require('./helpers/lowercase'));
8
+ chai.use(require('./helpers/isFQDN'));
9
+
10
+ describe('Wildcard domains', function(){
11
+ it('should be an array', function(){
12
+ expect(domains).to.be.a('array');
13
+ });
14
+ it('should have at least one domain', function(){
15
+ expect(domains).to.have.length.above(0);
16
+ });
17
+ it('should be in alphabetical order', function(){
18
+ expect(domains).to.be.sorted();
19
+ });
20
+ it('should not have duplicates', function(){
21
+ expect(domains).to.deep.equal(_.uniq(domains));
22
+ });
23
+ it('should be lowercase', function(){
24
+ expect(domains).to.be.all.lowercase;
25
+ });
26
+ it('should be a valid domain', function(){
27
+ expect(domains).to.be.all.isFQDN;
28
+ });
29
+ });
package/wildcard.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ /**
3
+ * Expose the wildcard disposable domains.
4
+ */
5
+
6
+ module.exports = require('./wildcard.json');
package/wildcard.json ADDED
@@ -0,0 +1,407 @@
1
+ [
2
+ "0x01.gq",
3
+ "0x01.tk",
4
+ "10mail.org",
5
+ "10mail.tk",
6
+ "33m.co",
7
+ "33mail.com",
8
+ "3dxtras.com",
9
+ "3utilities.com",
10
+ "567map.xyz",
11
+ "8191.at",
12
+ "aa.am",
13
+ "accountsite.me",
14
+ "acmetoy.com",
15
+ "acusupply.com",
16
+ "adultvidlite.com",
17
+ "aji.kr",
18
+ "anonaddy.com",
19
+ "anonaddy.me",
20
+ "anonbox.net",
21
+ "anyalias.com",
22
+ "asanatest1.us",
23
+ "awesome47.com",
24
+ "azzawajalla.store",
25
+ "bajetesik.store",
26
+ "band-freier.de",
27
+ "bandband1.com",
28
+ "bangmadid.store",
29
+ "batikbantul.com",
30
+ "bccto.me",
31
+ "bebekpenyet.buzz",
32
+ "bei.kr",
33
+ "bel.kr",
34
+ "beo.kr",
35
+ "bfo.kr",
36
+ "bgsaddrmwn.me",
37
+ "bho.kr",
38
+ "biasaelho.space",
39
+ "biz.st",
40
+ "biz.tm",
41
+ "bko.kr",
42
+ "blacksong.pw",
43
+ "blueauramassage.com",
44
+ "bounceme.net",
45
+ "bum.net",
46
+ "buwosok.tech",
47
+ "buzzndaraiangop2wae.buzz",
48
+ "byui.me",
49
+ "caboodle.buzz",
50
+ "cad.edu.gr",
51
+ "cempue.online",
52
+ "chickenkiller.com",
53
+ "choirul.host",
54
+ "cid.kr",
55
+ "ciran.xyz",
56
+ "cko.kr",
57
+ "cloudns.asia",
58
+ "cloudns.cc",
59
+ "cloudns.cx",
60
+ "cloudns.nz",
61
+ "com.com",
62
+ "coms.hk",
63
+ "comx.cf",
64
+ "craigslist.org",
65
+ "creo.site",
66
+ "creo.tips",
67
+ "creou.dev",
68
+ "crowdpress.it",
69
+ "cu.cc",
70
+ "cua77.xyz",
71
+ "d3vs.net",
72
+ "dadosa.xyz",
73
+ "danuarte.online",
74
+ "darrels.site",
75
+ "daseus.online",
76
+ "dayatan.host",
77
+ "dbo.kr",
78
+ "ddns.net",
79
+ "ddnsfree.com",
80
+ "deail.com",
81
+ "dedyn.io",
82
+ "defaultdomain.ml",
83
+ "discard-email.cf",
84
+ "dko.kr",
85
+ "dlink.cf",
86
+ "dlink.gq",
87
+ "dlyemail.com",
88
+ "dmtc.dev",
89
+ "dmtc.edu.pl",
90
+ "dmtc.press",
91
+ "dns-cloud.net",
92
+ "dns.navy",
93
+ "dnsabr.com",
94
+ "dnses.ro",
95
+ "doy.kr",
96
+ "drope.ml",
97
+ "dropmail.me",
98
+ "dynu.net",
99
+ "dzalaev-advokat.ru",
100
+ "e4ward.com",
101
+ "ediantenan.site",
102
+ "edu.auction",
103
+ "efo.kr",
104
+ "eho.kr",
105
+ "ely.kr",
106
+ "email-temp.com",
107
+ "emailfake.com",
108
+ "emailfake.ml",
109
+ "emailfreedom.ml",
110
+ "emlhub.com",
111
+ "emlpro.com",
112
+ "emltmp.com",
113
+ "emy.kr",
114
+ "enu.kr",
115
+ "eny.kr",
116
+ "epizy.com",
117
+ "escritossad.net",
118
+ "ese.kr",
119
+ "esy.es",
120
+ "ewa.kr",
121
+ "exi.kr",
122
+ "expiredtoaster.org",
123
+ "ezyro.com",
124
+ "fackme.gq",
125
+ "fassagforpresident.ga",
126
+ "firste.ml",
127
+ "flu.cc",
128
+ "foy.kr",
129
+ "fr.nf",
130
+ "freeml.net",
131
+ "gadzooks.buzz",
132
+ "gettrials.com",
133
+ "giize.com",
134
+ "gmail.gr.com",
135
+ "gmeil.me",
136
+ "gok.kr",
137
+ "gotdns.ch",
138
+ "gpa.lu",
139
+ "grigio.cf",
140
+ "guardmail.cf",
141
+ "haddo.eu",
142
+ "heliohost.org",
143
+ "higogoya.com",
144
+ "historial.store",
145
+ "hitechinfo.com",
146
+ "hix.kr",
147
+ "hiz.kr",
148
+ "hmail.us",
149
+ "hopto.org",
150
+ "hostingarif.me",
151
+ "idn.vn",
152
+ "iesco.info",
153
+ "igg.biz",
154
+ "ignorelist.com",
155
+ "iki.kr",
156
+ "ilovemyniggers.club",
157
+ "imouto.pro",
158
+ "info.tm",
159
+ "infos.st",
160
+ "irr.kr",
161
+ "isgre.at",
162
+ "it2-mail.tk",
163
+ "jailbreakeverything.com",
164
+ "jil.kr",
165
+ "jindmail.club",
166
+ "jto.kr",
167
+ "junnuok.com",
168
+ "justemail.ml",
169
+ "kadokawa.top",
170
+ "kantal.buzz",
171
+ "keitin.site",
172
+ "kentel.buzz",
173
+ "kerl.cf",
174
+ "kerl.gq",
175
+ "kikwet.com",
176
+ "kondomeus.site",
177
+ "kozow.com",
178
+ "kranjingan.store",
179
+ "kranjingan.tech",
180
+ "kranjingans.tech",
181
+ "kro.kr",
182
+ "lal.kr",
183
+ "laste.ml",
184
+ "lbe.kr",
185
+ "legundi.site",
186
+ "lei.kr",
187
+ "likevip.net",
188
+ "liopers.link",
189
+ "lko.co.kr",
190
+ "lko.kr",
191
+ "ll47.net",
192
+ "lofteone.ru",
193
+ "lom.kr",
194
+ "longdz.site",
195
+ "longmusic.com",
196
+ "lostandalone.com",
197
+ "loudcannabisapp.com",
198
+ "loy.kr",
199
+ "loyalherceghalom.ml",
200
+ "luk2.com",
201
+ "luksarcenter.ru",
202
+ "luo.kr",
203
+ "lyrics-lagu.me",
204
+ "mail-temp.com",
205
+ "mail0.ga",
206
+ "mailinator.com",
207
+ "mailr.eu",
208
+ "marrone.cf",
209
+ "mbe.kr",
210
+ "mblimbingan.space",
211
+ "mebelnovation.ru",
212
+ "mefound.com",
213
+ "mintemail.com",
214
+ "mishmash.buzz",
215
+ "mko.kr",
216
+ "mlo.kr",
217
+ "mooo.com",
218
+ "motifasidiri.website",
219
+ "mp-j.cf",
220
+ "mp-j.ga",
221
+ "mp-j.gq",
222
+ "mp-j.ml",
223
+ "mp-j.tk",
224
+ "mr-meshkat.com",
225
+ "mrossi.cf",
226
+ "mrossi.gq",
227
+ "mrossi.ml",
228
+ "ms1.email",
229
+ "msdc.co",
230
+ "muabanwin.net",
231
+ "museumplanet.com",
232
+ "my.id",
233
+ "my3mail.cf",
234
+ "my3mail.ga",
235
+ "my3mail.gq",
236
+ "my3mail.ml",
237
+ "my3mail.tk",
238
+ "myddns.me",
239
+ "myeslbookclub.com",
240
+ "mymy.cf",
241
+ "mysafe.ml",
242
+ "mzon.store",
243
+ "n-e.kr",
244
+ "nafko.cf",
245
+ "nctu.me",
246
+ "netmail.tk",
247
+ "netricity.nl",
248
+ "new-mgmt.ga",
249
+ "ngalasmoen.xyz",
250
+ "ngguwokulon.online",
251
+ "njambon.space",
252
+ "nko.kr",
253
+ "now.im",
254
+ "npv.kr",
255
+ "nuo.co.kr",
256
+ "nuo.kr",
257
+ "nut.cc",
258
+ "o-r.kr",
259
+ "oazis.site",
260
+ "obo.kr",
261
+ "ocry.com",
262
+ "office.gy",
263
+ "okezone.bid",
264
+ "one.pl",
265
+ "onlysext.com",
266
+ "oovy.org",
267
+ "oppoesrt.online",
268
+ "orangotango.ml",
269
+ "otherinbox.com",
270
+ "ourhobby.com",
271
+ "owa.kr",
272
+ "owh.ooo",
273
+ "oyu.kr",
274
+ "p-e.kr",
275
+ "pafnuty.com",
276
+ "pandies.space",
277
+ "paqeh.online",
278
+ "pe.hu",
279
+ "petinggiean.tech",
280
+ "peyekkolipi.buzz",
281
+ "poderosamulher.com",
282
+ "poistaa.com",
283
+ "porco.cf",
284
+ "poy.kr",
285
+ "prapto.host",
286
+ "probatelawarizona.com",
287
+ "ptcu.dev",
288
+ "pubgm.website",
289
+ "qbi.kr",
290
+ "qc.to",
291
+ "r-e.kr",
292
+ "ragel.me",
293
+ "rao.kr",
294
+ "reilis.site",
295
+ "rf.gd",
296
+ "ringen.host",
297
+ "rko.kr",
298
+ "rosso.ml",
299
+ "row.kr",
300
+ "rr.nu",
301
+ "rshagor.xyz",
302
+ "s-ly.me",
303
+ "safe-mail.gq",
304
+ "sagun.info",
305
+ "samsueng.site",
306
+ "saucent.online",
307
+ "sborra.tk",
308
+ "schwarzmail.ga",
309
+ "seluang.com",
310
+ "sempak.link",
311
+ "sendaljepit.site",
312
+ "sendangagung.online",
313
+ "servegame.com",
314
+ "shp7.cn",
315
+ "siambretta.com",
316
+ "skodaauto.cf",
317
+ "soju.buzz",
318
+ "solidplai.us",
319
+ "somee.com",
320
+ "spamtrap.ro",
321
+ "spymail.one",
322
+ "ssanphone.me",
323
+ "standeight.com",
324
+ "statuspage.ga",
325
+ "steakbeef.site",
326
+ "stonedogdigital.com",
327
+ "stop-my-spam.pp.ua",
328
+ "storeyee.com",
329
+ "sumanan.site",
330
+ "supere.ml",
331
+ "svblog.com",
332
+ "sytes.net",
333
+ "tandy.co",
334
+ "tangtingtung.tech",
335
+ "teml.net",
336
+ "tempembus.buzz",
337
+ "tempremail.cf",
338
+ "tempremail.tk",
339
+ "tgwrzqr.top",
340
+ "thekphub.com",
341
+ "thepieter.com",
342
+ "theworkpc.com",
343
+ "thinktimessolve.info",
344
+ "thumoi.com",
345
+ "tko.co.kr",
346
+ "tko.kr",
347
+ "tmo.kr",
348
+ "tmpeml.com",
349
+ "toh.info",
350
+ "toi.kr",
351
+ "tomcrusenono.host",
352
+ "topikurrohman.xyz",
353
+ "tourbalitravel.com",
354
+ "traveldesk.com",
355
+ "tricakesi.store",
356
+ "trillianpro.com",
357
+ "twilightparadox.com",
358
+ "tyrex.cf",
359
+ "uha.kr",
360
+ "uk.to",
361
+ "uko.kr",
362
+ "umy.kr",
363
+ "unaux.com",
364
+ "undeadbank.com",
365
+ "underseagolf.com",
366
+ "undo.it",
367
+ "uny.kr",
368
+ "uola.org",
369
+ "upy.kr",
370
+ "urbanban.com",
371
+ "us.to",
372
+ "usa.cc",
373
+ "uu.gl",
374
+ "uvy.kr",
375
+ "uyu.kr",
376
+ "vay.kr",
377
+ "vba.kr",
378
+ "veo.kr",
379
+ "viola.gq",
380
+ "vivoheroes.xyz",
381
+ "vkbags.in",
382
+ "vo.uk",
383
+ "volvo-xc.tk",
384
+ "vuforia.us",
385
+ "wakultimbo.buzz",
386
+ "web.id",
387
+ "weprof.it",
388
+ "werkuldino.buzz",
389
+ "wil.kr",
390
+ "wingkobabat.buzz",
391
+ "x24hr.com",
392
+ "xiaomie.store",
393
+ "xo.uk",
394
+ "xxi2.com",
395
+ "yarien.eu",
396
+ "yawahid.host",
397
+ "ye.vc",
398
+ "yertxenor.tk",
399
+ "yomail.info",
400
+ "yopmail.com",
401
+ "yoqoyyum.space",
402
+ "youdontcare.com",
403
+ "zalvisual.us",
404
+ "zapto.org",
405
+ "ze.cx",
406
+ "zeroe.ml"
407
+ ]