IsTempEmail
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
- Single or bulk email checking
- Free of cost (no api pricing)
- Shipped with typings for better intellisense
- Searches in two different indices
Requirements
- Nodejs 12+
- 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