UNPKG

tempemailvalidator

Version:

A Node.js package to validate temporary and disposable email addresses, helping to prevent fake registrations and spam.

7 lines (6 loc) 235 B
import { isTemporaryEmail } from './index.js'; (async () => { const testEmail = "shkzhobzhlcnvobbut@nbmbb.com"; const isTemp = await isTemporaryEmail(testEmail); console.log(`Is "${testEmail}" temporary? ${isTemp}`); })();