1.0.4 • Published 11 months ago

@defensestation/public-email-validator v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

public-email-validator

A simple and fastest module to validate a public e-mail address.

Installation

Install via NPM:

npm install @defensestation/public-email-validator --save

or with yarn

yarn add @defensestation/public-email-validator

Usage

import { isPublicEmail, isValidEmail } from "@defensestation/public-email-validator";

isValidEmail("test@email.com"); //true
isPublicEmail("test@email.com"); // false

Time complexity

Time complexity of isPublicEmail function is O(1) which makes it the fastest code to check whether an email is public or not.