@defensestation/public-email-validator
v1.0.4
Published
Check whether the email address is public or not.
Downloads
16
Readme
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("[email protected]"); //true
isPublicEmail("[email protected]"); // 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.