0.2.0 • Published 12 months ago
is-spam-email v0.2.0
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("foobar@10dk.email");
// => 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.