Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shelf/is-valid-email-address

Package Overview
Dependencies
Maintainers
61
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shelf/is-valid-email-address

Email validator

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
61
Created
Source

@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

FAQs

Package last updated on 15 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc