remove console log of email address
This commit is contained in:
parent
61273634f9
commit
f828fb5a66
1
index.js
1
index.js
@ -6,7 +6,6 @@ var free = fs.readFileSync(__dirname + '/data/free.txt').toString().split('\n').
|
|||||||
|
|
||||||
function isFree(email) {
|
function isFree(email) {
|
||||||
if (typeof email !== 'string') throw new TypeError('email must be a string');
|
if (typeof email !== 'string') throw new TypeError('email must be a string');
|
||||||
console.log(email);
|
|
||||||
var domain = tldjs.getDomain(email.split('@').pop());
|
var domain = tldjs.getDomain(email.split('@').pop());
|
||||||
return free.indexOf(domain) !== -1;
|
return free.indexOf(domain) !== -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user