is-disposable
v0.9.0
Published
A JavaScript library to check whether a email address is disposable.
Downloads
2,887
Readme
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('[email protected]')) // updated weekly
// Online Mode (RECOMMENDED)
console.log(await isDisposable('[email protected]', { remote: true })) // updated hourly