1.3.6 • Published 8 years ago

validate-email-shootout v1.3.6

Weekly downloads
42
License
MIT
Repository
github
Last release
8 years ago

node-validate-email-shootout

A shootout test of node-validate-email

Language   Platform   License   Status

NPM Downloads

npm.io

Wat

Dude, seriously, how many email validators are there out there? How hard are they to pick between?

I got tired of it. I'm making a proof of it.

I'm going to release a better email validator soon. I'm not done yet, but my prerelease is already spitting distance behind best I can find. (I'm coming for you, Steve.)

It's data time!

Of a possible 266 (better numbers are on their way soon) :

ScorePctName
195/26673.31Steve
19573.31validator
19573.31validate-email
19472.93bvl from StackOverflow
19472.93Parsley
19071.43Sectrean
17465.41RFC2822 HTML5
16562.03Fighting for a Lost Cause
15658.65Sitepoint
15357.52Tugrul Asik
15357.52Microsoft
15357.52JsKit
14956.02Naive @ and . test
14554.51Voyager w/ brackets
13249.62Voyager locked

Winner:

Steve

... for now. My package is tied with his regex (because I copied it,) so he gets the win.

Improvements incoming. :smile:

How, please

First, I gathered a bunch of email test data, and put it into packages like testdata-valid-email, testdata-invalid-email, and testdata-newtld-email, from excellent community resources like Fighting for a Lost Cause.

Then, I made a mechanic to test them one at a time, and count the results.

Finally, I gathered as many email validators as I could find, and I leveraged them.

Polemic :neckbeard:

node-validate-email-shootout is MIT licensed, because viral licenses and newspeak language modification are evil. Free is only free when it's free for everyone.