@jonathankablan/email-server-true
v1.0.7
Published
> Check if the mail server is correct or exists
Downloads
2
Maintainers
Readme
email-server-true
Check if the domain mail is correct or exists
Install
$ npm install @jonathankablan/email-server-true
Usage
const email = require('@jonathankablan/email-server-true')
// You can use a string
email('johndoe') // return 'undefined' if email is invalid
email('[email protected]') // return 'false' if email not match
email('[email protected]') // return 'true' if email match
// list of domains verify
"gmail.com",
"yahoo.fr",
"hotmail.fr",
"hotmail.com",
"outlook.fr",
"live.fr",
"live.com",
"outlook.com",
"orange.fr",
"sfr.fr",
"icloud.com",
"me.com",
"mac.com",
"labanquepostale.fr",
"laposte.net",
"wanadoo.fr"
// you can also add your domain list
var newDomain = [
'discord.com',
'enterprise.net'
];
email('[email protected]', newDomain) // return true
Resources
- Regexr - Application regexr
License
MIT © Jonathan Kablan