New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

persmail

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

persmail

Personal email providers database

latest
Source
npmnpm
Version
0.5.4
Version published
Maintainers
1
Created
Source

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!

FAQs

Package last updated on 15 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts