Skip to content

quangvo09/email-spam-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Spam Checker

A wrapper of email validater. It's useful for backend to avoid spam emails.

Install

$ npm install email-spam-checker

Usage

var emailChecker = require('email-spam-checker');
emailChecker('abc@xyz.com')
  .then(() => {
      // You give me a valid email ^^
  })
  .catch(err => {
      // Email is invalid
      const { type } = err;
      console.log(`Error type: ${type}`); 
  })

Error Types

  • 'EMAIL_INVALID': email is invalid
  • 'EMAIL_SPAM': domain's email is in blacklist

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published