JSPM

email-sanitizer

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q43879F
  • License Apache-2.0

A utility package that detects and filters out temporary or disposable email addresses to prevent spam and ensure valid user registrations.

Package Exports

  • email-sanitizer
  • email-sanitizer/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (email-sanitizer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Email Sanitizer

A node utility package that detects and filters out temporary or disposable email addresses to prevent spam and ensure valid user registrations.

Features

  • Detects temporary or disposable email addresses.
  • Simple and easy-to-use.
  • No external dependencies, built with core JavaScript.

Installation

You can install this package via npm:

npm install email-sanitizer

Usage

To use the Email Sanitizer, you need to import the package and call the check function with the email address you want to validate. The function returns true if the email is temporary and false if it is not.

Example

import { check } from 'email-sanitizer';

const email = 'example@tempmail.com';
const isTemp = check(email);

if (isTemp) {
  console.log('This is a temporary email address.');
} else {
  console.log('This is a valid email address.');
}

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub for any improvements or bug fixes.

Author

Rahul Rathore

Bugs and Issues

If you encounter any issues, please report them at the GitHub issues page.