1.0.1 • Published 6 years ago

valid-email v1.0.1

Weekly downloads
27
License
MIT
Repository
github
Last release
6 years ago

valid-email

Validate Email Addresses w/o pure regular expressions.

Regular expression validation is often useful, but also often inaccurate. Sometimes it's just better to do it manually.

Example

    console.log(require('valid-email')('john@iamjohnhenry.com'))//#true
    console.log(require('valid-email')('iamjohnhenry.com'))//#false

Accuracy

There are some cases in which this library present the user with false negatives (See this issue.

This library is considered a "good enough" implementation for most use cases and is meant to provide a simple method of validating email about which most coders can reason.

There are other methods which may be more accurate but more difficult ensure that it's doing what it's doing. (See https://emailregex.com/).

Please be aware of the levels of accuracy your application needs.

Warning

This code is compiled from untested code found on stackoverflow and is mainly intended for academic purposes. Use at your own risk.

Much thanks to @davisjam for helping me to patch a recent security vunerability https://github.com/johnhenry/valid-email/issues/4 .

1.0.1

6 years ago

1.0.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

10 years ago

0.0.1

12 years ago