node-email-check
Version:
NodeJS Email Validator, Checker and MX Checker
51 lines (32 loc) • 1.51 kB
Markdown
# node-email-check
[](https://www.gnu.org/licenses/gpl-3.0) [](https://www.npmjs.org/package/node-email-check) [](https://www.npmjs.com/package/node-email-check) [](https://www.npmjs.com/package/node-email-check) [](https://github.com/teomantuncer/node-email-check)
NodeJS Email Validator, Checker and MX Checker
You can check email address with mx check, syntax check and domain check.
## Installation
```bash
npm install node-email-check
# or
yarn add node-email-check
```
## Usage
```javascript
const emailCheck = require('node-email-check');
// async request with mx check
await emailCheck.isValid('example@email.com');
// sync request without mx check
emailCheck.isValidSync('example@email.com');
```
## Testing
```bash
npm run test
```
## Contributing
1. Fork it
2. Create your feature branch: `git checkout -b my-feature-or-fix`
3. Commit your changes: `git commit -am 'Add some feature or fix'`
4. Push to the branch: `git push origin my-feature-or-fix`
5. Submit a pull request
## Contributors
Teoman Tuncer - Author ([@teomantuncer](https://twitter.com/teomantuncer)) - [tuncer.dev](https://tuncer.dev)
## License
GPL3.0