0.2.0
A JavaScript library to check whether a email address is disposable.
Attributes
Includes Deno configuration
Repository
Current version released
3 years ago
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