MailsaFeGuard
MailsaFeGuard is a package to check if an email address is from a disposable email provider. It validates the email format, checks against a list of known disposable domains, and handles whitelisted domains.
Installation
You can install MailsaFeGuard using npm:
npm install mailsafeguard
Usage
To use MailsaFeGuard in your project, require it and call the isDisposableEmail function. This function checks whether the provided email address is from a disposable email provider.
const { isDisposableEmail } = require('MailSafeGuard');
(async () => {
const email = 'user@example.com';
const result = await isDisposableEmail(email);
console.log(`Is the email ${email} disposable? ${result}`);
})();