Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
email-inspector
Advanced tools
Email Inspector is a Node.js package for validating and inspecting email addresses.
You can install this package using npm:
npm install email-inspector
Here's how you can use Email Inspector in your Node.js application:
const emailInspector = require('email-inspector');
const email = 'user@example.com';
if (emailInspector.validate(email)) {
console.log('Email is valid');
} else {
console.log('Email is invalid');
}
Email Inspector is designed to verify email addresses against a curated list of free email providers. This validation ensures that your business communication remains uninterrupted and can operate smoothly.
You can customize the behavior of Email Inspector using the following options:
customFreeProviders (Array): An array of custom free email providers to consider during validation.
providersToRemove (Array): An array of email providers to exclude from the list of free providers during validation.
const emailInspector = require('email-inspector');
// Example 1: Basic validation
const isValid = emailInspector.validate('user@example.com');
console.log(isValid); // true
// Example 2: Custom free providers
const customProviders = ['customprovider.net'];
const isValidCustom = emailInspector.validate('user@customprovider.net', { customFreeProviders: customProviders });
console.log(isValidCustom); // false
If you'd like to contribute to this project, please follow these steps:
MIT
Weasely
FAQs
A Node.js module for email address analysis and validation.
The npm package email-inspector receives a total of 5,568 weekly downloads. As such, email-inspector popularity was classified as popular.
We found that email-inspector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.