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

1.0.0 • Public • Published

@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@example.com'); // true
isValidEmail('invalid"email@example.com'); // false
Benchmark
test@somemail.com:
2 157 335 ops/s, ±3.85%    | 86.93% slower

Abc\@def@example.com:
1 555 215 ops/s, ±0.71%    | 90.57% slower

very."(),:;<>[]".VERY."very@\\ very".unusual@strange.example.com:
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

test..test@sdf.com:
16 500 605 ops/s, ±0.21%   | fastest

mlewan.@att.net:
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

/@shelf/is-valid-email-address/

    Package Sidebar

    Install

    npm i @shelf/is-valid-email-address

    Weekly Downloads

    1,118

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    6.23 kB

    Total Files

    10

    Last publish

    Collaborators

    • vladmarchuk
    • vadymaslovskyi
    • andrew_batutin
    • marianna-milovanova
    • petro.bodnarchuk
    • kateryna-kochina
    • maksym.tarnavskyi
    • andrii-nastenko
    • mykhailo.yatsko
    • ahavrysh
    • nikita_shelf
    • maciej.orlowski
    • monopotan
    • andrew214
    • bogdan.kolesnyk
    • andrii.batutin
    • kristina.zhak
    • anton-russo
    • mmazurowski
    • mateuszgajdashelf
    • kchlon
    • dmytro.harazdovskiy
    • duch0416
    • i5adovyi
    • olesiamuller
    • mykola.khytra
    • yuliiakovalchuk
    • el_scrambone
    • bodyaflesh
    • andriisermiahin
    • mpushkin
    • batovpavlo
    • domovoj
    • vozemer
    • oleksii.dymnich
    • dima-bond
    • maksym.hayovets
    • oles.zadorozhnyy
    • ss1l
    • gemshelf
    • hartzler
    • vladgolubev
    • hmelenok
    • knupman
    • maaraanas
    • terret
    • chapelskyi.slavik
    • pihorb
    • irynah
    • diana.kryskuv
    • andy.raven
    • rafler
    • sskalp88
    • demiansua
    • yuriil
    • ktv18
    • drews_abuse
    • rostyslav-horytskyi
    • whodeen