Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1.1 KB

README.md

File metadata and controls

62 lines (42 loc) · 1.1 KB

@shelf/is-valid-email-address

Compliant with RFC 3696

Install

$ yarn add @shelf/is-valid-email-address

Usage

const {isValidEmail} = import('@shelf/is-valid-email-address');

isValidEmail('[email protected]'); // true
isValidEmail('invalid"[email protected]'); // false
Benchmark
[email protected]:
2 157 335 ops/s, ±3.85%    | 86.93% slower

Abc\@[email protected]:
1 555 215 ops/s, ±0.71%    | 90.57% slower

very."(),:;<>[]".VERY."very@\\ very"[email protected]:
917 709 ops/s, ±0.20%      | slowest, 94.44% slower

much."more\ unusual"@example.com:
1 505 956 ops/s, ±0.20%    | 90.87% slower

@test.com:
1 762 869 ops/s, ±0.21%    | 89.32% slower

@@mail.com:
3 410 584 ops/s, ±0.18%    | 79.33% slower

[email protected]:
16 500 605 ops/s, ±0.21%   | fastest

[email protected]:
3 327 090 ops/s, ±0.20%    | 79.84% slower

Publish

$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags

License

MIT © Shelf