persmail
v0.5.4
Published
Personal email providers database
Downloads
19
Readme
Persmail
Contains a list of free email services typically used to find out if an email address is personal or not.
Install
npm i persmail
Usage
var persmail = require('persmail')
// Check of domains includes your email host
if (persmail.domains.includes('gmail.com')) {
// is personal email
}
// Get the host from an email address
var host = persmail.host('[email protected]')
// host is 'example.com'
// Check if host is in domains
var sendable = persmail.has(host)
// Check complete email address, short cut for method above
if (persmail.sendable('[email protected]')) {
// email address is not in the domains list
}
// Check if email is personal
var isPersonal = persmail.personal('[email protected]')
Created by Eldøy Projects.
MIT Licensed. Enjoy!