Socket
Socket
Sign inDemoInstall

temp-mail-check

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    temp-mail-check

Node JS plugin to compare email addresses with domains that generate known temporary emails


Version published
Maintainers
1
Install size
935 kB
Created

Readme

Source

temp-mail-check

Node JS plugin to compare email addresses with domains that generate known temporary emails

4614 open domains

##Installation

npm i temp-mail-check

##Initialization

const tempMailCheck = require('temp-mail-check'); 

##Exemples

Test Email

tempMailCheck.checkEmail("jay@tickete.it") // TRUE
tempMailCheck.checkEmail("jay@0-mail.com") // TRUE
	
	// should return true when the email is valid
	// should return false when the email is not valid
	
	

Find Domain

tempMailCheck.findDomain("0-mail.com") // TRUE
tempMailCheck.findDomain("tickete.it") // FALSE
	
	// should return TRUE when the domain is in source
	// should return FALSE when the domain is not in the source
	
	

Get Source

_tempEmailCheck.getSource() 
// [ "getapet.net","0-mail.com", "027168.com", ... ]

##Test

npm test


##Contributions

Temporary email providers frequently update domains, then to identify all temporary emails it is important to update the domain file (disposable-email-domains.json). This is an opensource project so it's important to contribute!

To simplify the insertion of new domains I made a script to use : __addDomains.js

Steps

Add new domains with __addDomains.js

node __addDomains.js  --list=newdomain1.com,newdomain2.com

This tool checks that the domains you are adding are not already present and updates the file only with new domains.

It is important to enter only valid domains that respect the regex:

^([\s\S])+\.+[a-z]{2,}$

After entering the domains make a commit and send a pullrequest.

Thanks for collaboration <3

##Suggestions

These are just some of the temporary email services to monitor :

https://temp-mail.org
https://www.mohmal.com
https://www.guerrillamail.com
https://app.getnada.com
https://tempail.com
https://mytemp.email
https://mailto.space
https://10minutemail.com
http://www.fakemailgenerator.com
https://maildrop.cc
https://www.hidemyass.com
https://www.mailinator.com/

Keywords

FAQs

Last updated on 08 Nov 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc