@rearguard/is-email
TypeScript icon, indicating that this package has built-in type declarations

1.9.6 • Public • Published

@rearguard/is-email.

Installation.

npm i @rearguard/is-email

Intro.

@rearguard/is-email is a validator for email addresses, it allows checking when an email address is valid, according to RFC 5322

Usage.

const {isEmail} = require('@rearguard/is-email');

const longemail = new Array(255).fill('a').join();

isEmail(`${longemail}@gmail.com`); // => false
isEmail(`@gmail.com`); // => false
isEmail('hello@gmail.com'); // => false
isEmail('hello@sienna12bourne.ga'); // => true

Benchmarks.

@rearguard/is-email is fast and intuitive, you can find benchmarks against similar libraries in the /bench folder.

Tests.

yarn test

Readme

Keywords

Package Sidebar

Install

npm i @rearguard/is-email

Weekly Downloads

53

Version

1.9.6

License

MIT

Unpacked Size

5.07 kB

Total Files

13

Last publish

Collaborators

  • vorillaz