freemail

1.7.0 · abandoned · verified Wed Apr 22

freemail is a Node.js module that provides a programmatic interface to identify whether an email domain is considered 'free' (e.g., gmail.com) or 'disposable' (e.g., mailinater.com). It ships with a database of domains categorized into `free.txt`, `disposable.txt`, and `blacklist.txt`. The package is currently at version 1.7.0. Its primary differentiator is the included, updateable domain database, which can be synchronized from various online sources. However, the project appears to be unmaintained, with its last update several years ago, meaning the included data may be significantly out of date unless manually refreshed by the user. There is no clear release cadence, and new development has ceased.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to use `freemail` to check if various email addresses belong to free or disposable email providers, illustrating its core functionality.

const freemail = require('freemail');

// Example: Checking common free email domains
console.log('Is gmail.com free?', freemail.isFree('user@gmail.com'));
console.log('Is outlook.com free?', freemail.isFree('another@outlook.com'));

// Example: Checking common disposable email domains
console.log('Is mailinator.com disposable?', freemail.isDisposable('temp@mailinator.com'));
console.log('Is yopmail.com disposable?', freemail.isDisposable('anon@yopmail.com'));

// Example: Checking a standard corporate/personal domain (should be neither)
console.log('Is mycompany.com free?', freemail.isFree('ceo@mycompany.com'));
console.log('Is mycompany.com disposable?', freemail.isDisposable('ceo@mycompany.com'));

// Demonstrating the full object structure (optional, for inspection)
// console.log(Object.keys(freemail));

view raw JSON →