2.1.2 • Published 3 years ago

@tbhaxor/is-temp-email v2.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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

2.1.2

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

1.0.0

3 years ago