Socket
Book a DemoInstallSign in
Socket

email-syntax-check

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

email-syntax-check

A simple matcher with regex cache.

1.1.3
latest
Source
npmnpm
Version published
Weekly downloads
76
-18.28%
Maintainers
1
Weekly downloads
 
Created
Source

email-syntax-check

E-Mail address syntax validation module.

logo

version downloads node status

Installation

npm install email-syntax-check

Status

none,official,disposable,free-email,spam-trap,role-based

Usage

const esc = require('email-syntax-check');

esc.syntaxCheck("mehmet.kozan@liev.com").then(function(res){
    console.log(res.status);//none
});

//enable did you mean
esc.syntaxCheck("mehmet.kozan@liev.com",true).then(function(res){
    console.log(res.did_you_mean);//mehmet.kozan@live.com
    console.log(res.status);//free-email
});

esc.syntaxCheck("career@cia.gov").then(function(res){
    console.log(res.status);//official
});

esc.syntaxCheck("info@microsoft.com").then(function(res){
    console.log(res.status);//role-based
});

esc.syntaxCheck("bouncer@company.com").then(function(res){
    console.log(res.status);//spam-trap
});

esc.syntaxCheck("tom@10minutemail.com").then(function(res){
    console.log(res.status);//disposable
});

Test

mocha or npm test

check test folder and QUICKSTART.js for extra usage.

Keywords

email

FAQs

Package last updated on 15 Dec 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.