UNPKG

company-email-validator

Version:

Provides a fast company / work email validator by checking whether the email domain is in the free email provider list.

14 lines (12 loc) 386 B
/** * Check whether it's a company email address. * @param {string} email - The email address to validate. * @returns {boolean} */ export function isCompanyEmail(email: string): boolean; /** * Check whether it's a company email domain. * @param {string} domain - The email domain to validate. * @returns {boolean} */ export function isCompanyDomain(domain: string): boolean;