
Public
Like
free-mail
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Simple utility to check if an email address uses a free email provider.
This is useful if you want to rule out generic personal emails, like gmail, outlook, etc.
import { isFreeEmail } from "https://esm.town/v/stevekrouse/free-mail/main.ts";
isFreeEmail("user@gmail.com"); // false (is free email)
isFreeEmail("user@company.com"); // true (not free email)
The list of free email domains is from Hubspot.