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

disposable-email-domains

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disposable-email-domains

A list of [disposable email domains](http://en.wikipedia.org/wiki/Disposable_email_address) like `mailinator.com`. You can use it to detect or block disposable accounts in your signup process. Exact domain matches are found in [index.json](https://github.

  • 1.0.62
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
390K
increased by16.01%
Maintainers
2
Weekly downloads
 
Created

What is disposable-email-domains?

The disposable-email-domains npm package provides a list of domains that are known to be used for disposable email addresses. This can be useful for filtering out temporary or throwaway email addresses in your applications.

What are disposable-email-domains's main functionalities?

Check if a domain is disposable

This feature allows you to check if a given email address belongs to a disposable email domain. The code sample demonstrates how to split the email to get the domain and check if it is in the list of disposable domains.

const disposableDomains = require('disposable-email-domains');

function isDisposableEmail(email) {
  const domain = email.split('@')[1];
  return disposableDomains.includes(domain);
}

console.log(isDisposableEmail('test@mailinator.com')); // true
console.log(isDisposableEmail('test@gmail.com')); // false

Get the list of disposable domains

This feature allows you to access the entire list of disposable email domains. The code sample demonstrates how to require the package and log the list of domains.

const disposableDomains = require('disposable-email-domains');

console.log(disposableDomains);

Other packages similar to disposable-email-domains

FAQs

Package last updated on 28 Sep 2022

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