is-burner-email
v1.3.3
Published
Fast, offline burner / disposable email detection. Three lists (blacklist, whitelist, graylist), two modes (normal, strict), zero runtime deps.
Maintainers
Readme
is-burner-email (JavaScript / TypeScript)
Fast, offline detection of burner / disposable emails.
- Offline. Domain lists bundled at build time into the
dist/. No network calls at runtime. - Zero runtime dependencies.
- Three lists.
blacklist(burners),whitelist(always allowed),graylist(email alias / forwarding services — blocked only in strict mode). - TypeScript. Ships ESM + CJS + types. Node 20+.
- Refreshed weekly, reviewed before release — a cron aggregates multiple upstream sources and opens a PR; every published update passes through a maintainer review.
Install
npm install is-burner-emailUsage
import { isBurner, check } from 'is-burner-email';
isBurner('[email protected]'); // true
isBurner('[email protected]'); // false
isBurner('[email protected]'); // false (normal mode)
isBurner('[email protected]', { mode: 'strict' }); // true
check('[email protected]', { mode: 'strict' });
// {
// burner: true,
// domain: 'duck.com',
// list: 'graylist',
// reason: 'graylisted-strict'
// }Runtime overrides
import { addToBlacklist, addToWhitelist } from 'is-burner-email';
addToBlacklist('badactor.example');
addToWhitelist('our-corporate-domain.example');Whitelist always wins over blacklist.
CLI
The package installs a burner command:
npx is-burner-email [email protected]
# or, after global install (`npm i -g is-burner-email`):
burner [email protected]
# BURNER (blacklist): mailinator.com [blacklisted]
burner [email protected] --strict --json
# {"burner":true,"domain":"duck.com","list":"graylist","reason":"graylisted-strict","mode":"strict"}
burner --statsExit codes: 0 clean, 1 burner, 2 invalid input.
Modes
| Mode | blacklist | graylist | whitelist |
| -------- | --------- | -------- | --------- |
| normal | blocked | allowed | allowed |
| strict | blocked | blocked | allowed |
The graylist contains email alias / forwarding services (SimpleLogin, DuckDuckGo Email Protection, Firefox Relay) — services that let users mint unlimited revocable aliases. Treat these as burners only if your use case requires strong user accountability.
Other languages
Same API, same data, same versions across four ecosystems:
| Language | Registry | Install |
|---|---|---|
| JavaScript / TypeScript (you are here) | npm | npm install is-burner-email |
| Python | PyPI | pip install is-burner-email |
| Go | go.dev | go get github.com/kristijandraca/is-burner-email/packages/go |
| PHP | Packagist | composer require kristijandraca/is-burner-email |
See the monorepo README for the full overview.
License
MIT
