is-spam-email
v0.2.0
Published
Checks whether an email is spam or not.
Downloads
40
Maintainers
Readme
is-spam-email
Checks whether an email is spam or not.
Designed to work exclusively with the NodeJS ESM ecosystem.
Not supported in browsers or the CJS ecosystem.
Installtion
npm i is-spam-email
Usage
import isSpamEmail from "is-spam-email";
isSpamEmail("[email protected]");
// => true
API
isSpamEmail(email)
A predicate to check whether an email is spam or not.
1. email
Type:
string
Email to check against.
Note
It just checks against a JSON file of spam domains in an optimised way.
If any other spam domains are missing, feel free to open a PR.
The JSON file can be used wherever.