Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.
/ is-temp-email Public archive

Slimline nodejs library to check whether the email is temporary / disposable emails

License

Notifications You must be signed in to change notification settings

tbhaxor/is-temp-email

Repository files navigation

IsTempEmail Testing

Slimline nodejs library to check whether the email is temporary / disposable emails

Temporary emails for any application is the worst thing. It could lead to bot users registration and can contribute in analytics miscalculations or can fill the db space.

This module is for nodejs apps, with this you can check the email if temporary or not.

Features

  1. Single or bulk email checking
  2. Free of cost (no api pricing)
  3. Shipped with typings for better intellisense
  4. Searches in two different indices

Requirements

  1. Nodejs 12+
  2. Npm or Yarn

Installation

# using npm
npm i @tbhaxor/is-temp-email

# using yarn
yarn add @tbhaxor/is-temp-email

Importing in nodejs project

// commonjs
const isTempEmail = require("@tbhaxor/is-temp-email")

// esm
import * as isTempEmail from "@tbhaxor/is-temp-email"

Usage

Single email usage

isTempEmail.single("EMAIL").then(r => {
  console.log(r) // can be true or false
}).catch(console.error)

Bulk email usage

isTempEmail.bulk(["EMAIL1", "EMAIL2"]).then( r => {
  console.log(r["EMAIL1"]) // can be true or false
}).catch(console.error)

Licensing

This project is licensed under MIT License

Contact the Author

About

Slimline nodejs library to check whether the email is temporary / disposable emails

Resources

License

Stars

Watchers

Forks

Packages

No packages published