/tempmail-detect

node module to detect temporary email addresses known for spam

Primary LanguageJavaScriptMIT LicenseMIT

Node.js Package Node.js Package Downloads npm version

tempmail-detect

node module to detect temporary email addresses known for spam

Installation

yarn add tempmail-detect

Usage

import { isTempMail } from "tempmail-detect";

console.log(isTempMail("spam@host1s.com"));
// true
console.log(isTempMail("good@email.com"));
// false

Project Goals

Simple to use, 0 runtime dependency check for temporary mail addresses

About

Find a list of the used temp mail services in ./services.txt

Find a list of the used temp mail domains in ./domains.txt

Add new mail providers

Just extend the mail domain list in ./domains.txt

Building

yarn
yarn build