npm.io
0.9.0 • Published 3 years ago

is-disposable

Licence
MIT
Version
0.9.0
Deps
0
Size
108 kB
Vulns
0
Weekly
0
Stars
4

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