@tbhaxor/is-temp-email

2.1.2 • Public • Published

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

/@tbhaxor/is-temp-email/

    Package Sidebar

    Install

    npm i @tbhaxor/is-temp-email

    Weekly Downloads

    0

    Version

    2.1.2

    License

    MIT

    Unpacked Size

    9.36 kB

    Total Files

    13

    Last publish

    Collaborators

    • tbhaxor