Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
email-sanitizer
Advanced tools
A utility package that detects and filters out temporary or disposable email addresses to prevent spam and ensure valid user registrations.
A node utility package that detects and filters out temporary or disposable email addresses to prevent spam and ensure valid user registrations.
You can install this package via npm:
npm install email-sanitizer
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.');
}
Contributions are welcome! Please open an issue or submit a pull request on GitHub for any improvements or bug fixes.
If you encounter any issues, please report them at the GitHub issues page.
FAQs
A utility package that detects and filters out temporary or disposable email addresses to prevent spam and ensure valid user registrations.
We found that email-sanitizer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.