Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

boywithkeyboard/is-disposable

Repository files navigation

is-disposable

This library uses disposable-email-domains under the hood to check whether a email address is disposable.


PROTIP: If you need a more accurate solution, I recommend to check out my upcoming cloud service devyl.


Setup

Deno

import isDisposable from 'https://deno.land/x/is_disposable@{VERSION}/mod.ts'

Node.js

npm i is-disposable
// ESM
import isDisposable from 'is-disposable'

// CommonJS
const isDisposable = require('is-disposable')

Usage

// Offline Mode
console.log(await isDisposable('example@email.com')) // updated weekly

// Online Mode (RECOMMENDED)
console.log(await isDisposable('example@email.com', { remote: true })) // updated hourly

About

A JavaScript library to check whether a email address is disposable.

Resources

License

Stars

Watchers

Forks

Sponsor this project