JSPM

@defensestation/public-email-validator

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q53146F
  • License ISC

Check whether the email address is public or not.

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.