is-spam-email
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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.

CI npm

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.

Package Sidebar

Install

npm i is-spam-email

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

2.51 MB

Total Files

6

Last publish

Collaborators

  • rocktimsaikia