1.0.3 • Published 12 months ago

mailsafety v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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('test@example.com')
/*
    Sample Response
    {
        isEmail: true,
        email: "test@example.com",
        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.

Authors

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago