advanced-email-validator
v1.0.1
Published
A package to validate email addresses by checking format, DNS records, and SMTP verification.
Downloads
8
Maintainers
Readme
Advanced Email Validator
A package to validate email addresses by checking format, DNS records, and SMTP verification.
Installation
You can install the package via npm:
npm install advanced-email-validator
Usage
const validateEmail = require('advanced-email-validator');
async function runValidation() {
const validEmail = '[email protected]';
const invalidEmail = 'invalid-email';
console.log(`Testing valid email (${validEmail}):`, await validateEmail(validEmail));
console.log(`Testing invalid email (${invalidEmail}):`, await validateEmail(invalidEmail));
}
runValidation();