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-validator
Advanced tools
Provides a fast, pretty robust e-mail validator. Only checks form, not function.
The email-validator npm package is a simple and straightforward tool for validating email addresses. It provides a single function to check if an email address is valid according to standard email format rules.
validate email
This feature allows you to validate an email address. The `validate` function returns `true` if the email address is valid and `false` otherwise.
const validator = require('email-validator');
const isValid = validator.validate('test@example.com');
console.log(isValid); // true
The `validator` package is a comprehensive library for string validation and sanitization. It includes a wide range of validators, including email validation. It is more feature-rich compared to `email-validator` and can handle various types of data validation.
The `email-verifier` package provides more advanced email verification features, including checking the existence of the email domain and the mailbox. It is more complex and offers more functionality compared to `email-validator`.
The `isemail` package is another library for validating email addresses. It offers more detailed validation options and can be configured to follow different email validation standards. It is more flexible compared to `email-validator`.
A simple module to validate an e-mail address
Install via NPM:
npm install email-validator
var validator = require("email-validator");
validator.validate("test@email.com"); // true
import * as EmailValidator from 'email-validator';
EmailValidator.validate("test@email.com"); // true
Contributions welcome! Check the LICENSE
file for more info.
Distributed under the unlicense public domain. See LICENSE
for more information.
FAQs
Provides a fast, pretty robust e-mail validator. Only checks form, not function.
The npm package email-validator receives a total of 647,876 weekly downloads. As such, email-validator popularity was classified as popular.
We found that email-validator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.