Socket
Book a DemoInstallSign in
Socket

email-sanitizer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-sanitizer

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

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
9
50%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

email

FAQs

Package last updated on 04 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.