npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mailsafeguard

v1.4.0

Published

MailSafeGuard is a Node.js package designed to validate and detect disposable email addresses. It ensures email integrity by checking syntax, comparing against a whitelist of trusted providers, validating against a list of disposable domains, and performi

Downloads

20

Readme

MailsaFeGuard - Ultimate Email Validation and Filtering Tool 📧🚫

Welcome to MailsaFeGuard, the powerful Node.js package designed to ensure the integrity and legitimacy of email addresses. With MailsaFeGuard, you can effortlessly filter out disposable email addresses often used for spam or fraudulent activities. Say goodbye to unreliable email addresses and hello to cleaner, more trustworthy communications! 🌟📩

Features

1. Comprehensive Email Validation 📜✅

  • Syntax Validation: Ensures that the email format follows standard conventions.
  • Whitelist Check: Cross-references the email domain with a whitelist of trusted providers like Gmail, Outlook, and Yahoo.
  • Disposable Domain Check: Compares the domain against a list of known disposable email providers.
  • DNS Resolution: Verifies the existence and resolution of the email domain via DNS.

2. Easy-to-Use Interface 🖥️👌

  • Simple and intuitive API for seamless integration into your applications.
  • Clear and informative output for each email validation.

3. Reliable and Up-to-Date Information 🔄📅

  • Regularly updated list of disposable domains from a GitHub repository.
  • Robust DNS checks for domain verification.

How It Works

MailsaFeGuard follows a multi-step approach to ensure email legitimacy:

  • Syntax Validation: Verifies that the email address adheres to standard formatting rules.
  • Whitelist Check: Compares the email domain against a list of well-known, trusted email providers.
  • Disposable Domain Check: Fetches an updated list of disposable email domains from a GitHub repository to check against.
  • DNS Resolution: Ensures that the domain associated with the email address can be resolved through DNS, including its subdomains.

Installation

To get started with MailsaFeGuard, install it via npm:

npm install mailsafeguard


const { isDisposableEmail } = require('mailsafeguard');

// Validate an Email
async function checkEmail(email) {
    const result = await isDisposableEmail(email);
    if (result) {
        console.log(`${email} is from a disposable email provider.`);
    } else {
        console.log(`${email} is from a legitimate email provider.`);
    }
}

checkEmail('[email protected]'); // Disposable
checkEmail('[email protected]');     // Legitimate