
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
dns-email-validation
Advanced tools
Deep validation for the existence of an email address with validation of DNS records.
dns-email-validation is a typescript library that performs deep validation for the existence of an email address with validation of DNS records.
The main idea is to receive DNS record data instantly, even if the domain or email was created recently. Improved validation interface.
npm install dns-email-validation
#OR
yarn add dns-email-validation
#OR
pnpm add dns-email-validation
By default:
{
MX: true;
}
You can specify additional settings:
export interface IDnsEmailValidationOptions {
MX?: boolean; // validation of MX records
NS?: boolean; // validation of NS records
A?: boolean; // validation of A records
}
console.log(await DnsEmailValidation.verify('mail@gmail.com')); // { verification: true }
console.log(await DnsEmailValidation.verify('mail@example.com')); // { verification: false, reason: [ 'MX' ] }
Example: dns-email-validation-example
Licensed under MIT (LICENSE / http://opensource.org/licenses/MIT)
FAQs
Deep validation for the existence of an email address with validation of DNS records.
We found that dns-email-validation 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 is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.