Package Exports
- @defensestation/public-email-validator
- @defensestation/public-email-validator/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@defensestation/public-email-validator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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("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.