JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1004276
  • Score
    100M100P100Q178881F

Provides a fast, pretty robust e-mail validator. Only checks form, not function.

Package Exports

  • email-validator

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 (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

email-validator

A simple module to validate an e-mail address

npm version license

Installation

Install via NPM:

npm install email-validator

Usage

javascript

var validator = require("email-validator");

validator.validate("test@email.com"); // true

validator.validate_async("test@email.com", function(err, isValidEmail) {
        //Do something with isValidEmail
}); // true

TypeScript

import * as EmailValidator from 'email-validator';

EmailValidator.validate("test@email.com"); // true

EmailValidator.validate_async("test@email.com", ((err, isValidEmail) => {
        // Do something with isValidEmail        
}));

Contribute

We would love for you to contribute to email-validator, check the LICENSE file for more info.

Meta

Robert Schultz – http://cosmicrealms.comrobert@cosmicrealms.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/Sembiance/email-validator