mailsafety
v1.0.3
Published
An email identifier with mx lookup and disposable mail finder
Downloads
71
Maintainers
Readme
Mailsafety
A small npm library to identify whether an email is disposable email or not, also retrieving the mail validation information with its mx records for additional use.
Installation
Install mailsafety with npm
npm install mailsafety
Usage/Examples
const mailsafety = require('mailsafety');
const validationInfo = await mailsafety.validationInfo('[email protected]')
/*
Sample Response
{
isEmail: true,
email: "[email protected]",
domain: "example.com",
tld: ".com",
localPart: "test",
mx: [
{
exchange: "smtp.example.com",
priority: 1
}
],
isDisposable: false,
isValid: true
}
*/
Contributing
Contributions are always welcome!
See contributing.md
for ways to get started.
Please adhere to this project's code of conduct
.