Skip to content

eldoy/persmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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('vidar@example.com')
// 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('vidar@example.com')) {
  // email address is not in the domains list
}

// Check if email is personal
var isPersonal = persmail.personal('vidar@example.com')

Created by Eldøy Projects.

MIT Licensed. Enjoy!

About

Email validity checker

Resources

License

Stars

Watchers

Forks