mirror of
https://github.com/disposable-email-domains/disposable-email-domains.git
synced 2024-11-23 00:58:11 +08:00
Merge pull request #100 from martin-fogelman/master
Adding domains from EmailOnDeck.com && slippery.email ++ Nodejs Example
This commit is contained in:
commit
297ea24c8e
27
README.md
27
README.md
@ -57,6 +57,33 @@ def reject_email_blacklist
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
**NodeJs ** contributed by @martin-fogelman
|
||||||
|
```Node
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
const readline = require('readline'),
|
||||||
|
fs = require('fs');
|
||||||
|
|
||||||
|
const input = fs.createReadStream('./disposable_email_blacklist.conf'),
|
||||||
|
output = [],
|
||||||
|
rl = readline.createInterface({input});
|
||||||
|
|
||||||
|
// PROCESS LINES
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
console.log(`Processing line ${output.length}`);
|
||||||
|
output.push(line);
|
||||||
|
});
|
||||||
|
|
||||||
|
// SAVE AS JSON
|
||||||
|
rl.on('close', () => {
|
||||||
|
try {
|
||||||
|
const json = JSON.stringify(output);
|
||||||
|
fs.writeFile('disposable_email_blacklist.json', json, () => console.log('--- FINISHED ---'));
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
Contributing
|
Contributing
|
||||||
============
|
============
|
||||||
|
@ -729,6 +729,7 @@ furzauflunge.de
|
|||||||
fux0ringduh.com
|
fux0ringduh.com
|
||||||
fxnxs.com
|
fxnxs.com
|
||||||
fyii.de
|
fyii.de
|
||||||
|
g14l71lb.com
|
||||||
g4hdrop.us
|
g4hdrop.us
|
||||||
gaggle.net
|
gaggle.net
|
||||||
galaxy.tv
|
galaxy.tv
|
||||||
@ -1642,6 +1643,7 @@ sky-ts.de
|
|||||||
slapsfromlastnight.com
|
slapsfromlastnight.com
|
||||||
slaskpost.se
|
slaskpost.se
|
||||||
slave-auctions.net
|
slave-auctions.net
|
||||||
|
slipry.net
|
||||||
slopsbox.com
|
slopsbox.com
|
||||||
slothmail.net
|
slothmail.net
|
||||||
slushmail.com
|
slushmail.com
|
||||||
|
Loading…
Reference in New Issue
Block a user