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.
npm i is-spam-email
import isSpamEmail from "is-spam-email";
isSpamEmail("foobar@10dk.email");
// => true
A predicate to check whether an email is spam or not.
Type:
string
Email to check against.
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.