https://github.com/jonathanlight/email-server-true
Check if the mail server is correct or exists
https://github.com/jonathanlight/email-server-true
Last synced: about 1 year ago
JSON representation
Check if the mail server is correct or exists
- Host: GitHub
- URL: https://github.com/jonathanlight/email-server-true
- Owner: Jonathanlight
- License: mit
- Created: 2019-10-11T12:18:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T22:38:48.000Z (over 3 years ago)
- Last Synced: 2025-03-18T03:52:11.413Z (over 1 year ago)
- Language: JavaScript
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# email-server-true
> Check if the domain mail is correct or exists
## Install
```
$ npm install @jonathankablan/email-server-true
```
## Usage
```js
const email = require('@jonathankablan/email-server-true')
// You can use a string
email('johndoe') // return 'undefined' if email is invalid
email('johndoe@helloworld.fr') // return 'false' if email not match
email('johndoe@gmail.com') // 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('johndoe@discord.com', newDomain) // return true
```
## Resources
- [Regexr](https://regexr.com/) - Application regexr
## License
MIT © Jonathan Kablan