r/learnjavascript • • Jul 08 '26

I built a lightweight npm package to detect disposable email addresses

I recently built a small npm package that detects whether an email belongs to a disposable email provider.

I found that many existing solutions either rely on external APIs, have stale domain lists, or include more complexity than I needed for a simple check.

So I kept it focused:

  • Lightweight

  • No external API calls

  • Fast local lookups

  • TypeScript support

  • Regularly updated disposable email domains

Example:

import { isDisposableEmail } from "tempmail-checker";

isDisposableEmail("[email protected]"); // true
isDisposableEmail("[email protected]");      // false

I'm looking for feedback from other Node.js developers:

  • Is there anything you'd want from a package like this?

  • Would batch validation or custom domain lists be useful?

  • Any API improvements you'd suggest?

0 Upvotes

1 comment sorted by

2

u/ashkanahmadi Jul 09 '26

Can’t even use disposable emails anymore!!!