Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-deep-email-validator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-deep-email-validator

Validates emails based on regex, common typos, disposable email blacklists, DNS records and SMTP server response. Based on deep-email-validator.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

NodeJS Email Validator

NPM

This is based on deep-email-validator

Validates email addresses based on regex, common typos, disposable email blacklists and DNS records.

  • Validates email looks like an email i.e. contains an "@" and a "." to the right of it using RegEx.
  • Validates common typos e.g. example@gmaill.com using mailcheck.
  • Validates email was not generated by disposable email service using disposable-email-domains.
  • Validates MX records are present on DNS.

Getting Started

Comaptible with nodejs only. Not browser ready.

Install like so

npm i node-deep-email-validator --save

Use like so

const validateEmail = require('node-deep-email-validator');
async function main(){
  const valid = await validate('example@yourdomain.com'); //{ result: Boolean, failReason: String || null }
  if(valid.result){
    //Email is Valid
    //YOUR CODE HERE
  }
}

Keywords

FAQs

Package last updated on 16 Dec 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc