Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
simple-email-verifier
Advanced tools
Email verification by looking for SMTP records and account existence checking
This class can help you to check that some email is realy exists in the Internet.
For example, if you don't want to send email verification message with code, but just want to check that email wasn't generated by RANDOM_EMAIL()
function.
npm i simple-email-verifier
const { EmailVerifier } = require("simple-email-verifier");
let verifier = new EmailVerifier(10000);
verifier.verify("admin@vk.com").then(result => {
if (result) {
console.log("This email realy exists :)");
} else {
console.log("Email not found :(");
}
}).catch(console.error);
EmailVerifier(timeout: number, dnsCacheSettings: Object, mailFrom: string)
- Main verifier class, where mailFrom
- is your random server email, timeout
- is timeout for email verify in .verifySmtpRecord()
method. And dnsCacheSettings
are settings for dnscache package.verifier.verify(email: string): Promise<boolean>
- Full email verify promise.verifier.isValidEmail(email: string): boolean
- Validate email by regular expression.verifier.getEmailDomain(email: string): string
- Get email domain after @
symbol.verifier.checkMx(email: string): Promise<[]MxRecord>
- Look for MX records by DNS resolve.verifier.verifySmtpRecord(mxRecord: string, email: string): Promise<boolean>
- Check email account existing in the SMTP server.Some types of this module.
MX record object
FAQs
Email verification by looking for SMTP records and account existence checking
We found that simple-email-verifier 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.