https://github.com/abranhe/validate-mail
Validate your emails easier 📧
https://github.com/abranhe/validate-mail
email email-validator mail validate
Last synced: 4 months ago
JSON representation
Validate your emails easier 📧
- Host: GitHub
- URL: https://github.com/abranhe/validate-mail
- Owner: abranhe
- License: mit
- Created: 2019-01-04T04:54:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-11T05:21:23.000Z (over 5 years ago)
- Last Synced: 2025-01-10T23:34:54.093Z (6 months ago)
- Topics: email, email-validator, mail, validate
- Language: JavaScript
- Homepage: http://p.abranhe.com/validate-mail
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
Awesome Lists containing this project
README
[](https://npmjs.com/package/validate-mail)
# validate-mail
> Validate your emails got easier 📧
[](https://travis-ci.org/abranhe/validate-mail)
[](https://github.com/abranhe)
[](https://cash.me/$abranhe)
[](https://patreon.com/abranhe)
[](https://github.com/abranhe/validate-mail/blob/master/license)
[](https://npmjs.com/package/validate-mail)## Install
```
$ npm install validate-mail
```## Usage
```js
const validate = require('validate-mail');validate('[email protected]');
// => truevalidate('your @email.com');
// => false
```## API
### validate(input)
Checks if an email is valid.
Type: `boolean`
#### input
Type: `string`
String (email) to be validated
## License
[MIT][license] License © [Carlos Abraham][abranhe]
[abranhe]: https://github.com/abranhe
[abranhe-img]: https://avatars3.githubusercontent.com/u/21347264?s=50
[license]: https://github.com/abranhe/validate-mail/blob/master/license