1.0.3 • Published 1 year ago
public-email-list v1.0.3
public-email-list
Check whether an email address is registered with a known public email service (eg gmail.com
). The list of public email domains is exported too.
Installation
npm install -D public-email-list
Usage
import { isPrivateEmail, isPublicEmail } from "public-email-list";
isPublicEmail("hello@gmail.com"); // true
isPrivateEmail("hello@gmail.com"); // false
isPublicEmail("hello@myprivatedomain.com"); // false
isPrivateEmail("hello@myprivatedomain.com"); // true