
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
node-email-validator
Advanced tools
This is a npm package that checks if email is valid or not and also raises a flag if an email ID is temporary, belongs to a private org or that mail server is not used much.
This npm package checks that whether an email address is a valid email address or not by checking the MX records. It also has a statistics based check that whether an email address has a possibility of being a temporary email
, email belonging to a private organization
or that mail server is not used much in that region
. It also checks if the email address structure follows RFC 5322 Official Standard
or not.
npm install node-email-validator
or
npm i node-email-validator
var nev = require('node-email-validator');
nev('username@mail-server.extension').then(validation => {console.log(validation);}).catch(error => console.log(error));
{
user: 'xukrlrll',
domain: 'sharklasers.com',
isEmailValid: true,
mxRecords: [ { exchange: 'mail.guerrillamail.com', priority: 0 } ],
possibility: true,
timeout: false
}
user
- This contains the username part of the email address.domain
- This contains the domain part of the email address.isEmailValid
- This returns true
or false
depending on the validity of the email address.mxRecords
- It contains the MX records which are dictionaries of exchange
and priority
or []
if nothing is present.probability
- This returns true
or false
depending on the possibility of an email address being a temporary email
, email belonging to a private organization
or that mail server is not used much in that region
.timeout
- This returns true
or false
depending on the fact that the query caused timeout or not.npm test
FAQs
This is a npm package that checks if email is valid or not and also raises a flag if an email ID is temporary, belongs to a private org or that mail server is not used much.
The npm package node-email-validator receives a total of 164 weekly downloads. As such, node-email-validator popularity was classified as not popular.
We found that node-email-validator demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.