Skip to content

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

License

Notifications You must be signed in to change notification settings

nfoucha/is-disposable

 
 

Repository files navigation

is-disposable

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

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

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%