1.0.0 • Published 7 years ago

testmail v1.0.0

Weekly downloads
253
License
-
Repository
-
Last release
7 years ago

testmail

Javascript utility for checking if an email is valid or using a free or disposable email domain.

Based on the npm freemail module, which provides a database of free and disposable email domains. All credit for the free and disposable domains lists goes to the npm freemail maintainers.

Could for example be used to test if a user is using a business email.

Node

Install

npm install --save testmail
var testmail = require('testmail');

testmail('foo@bar');
> 'invalid'
testmail('foobar.com');
> 'invalid'
testmail(123);
> 'invalid'

testmail('smith@gmail.com');
> 'free'
testmail('jack@mailinater.com');
> 'disposable'

testmail('foo@google.com');
> 'valid'

Credit

1.0.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago