Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mailsafeguard

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailsafeguard

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

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-60%
Maintainers
0
Weekly downloads
 
Created
Source

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('example@mailinator.com'); // Disposable
checkEmail('example@gmail.com');     // Legitimate

Keywords

FAQs

Package last updated on 14 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc