-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: initial implementation #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM =D
Can this be benched against net.isIP as well? Can do a node/browser switch out in |
It's there in the current benchmark.
|
Yea good idea. It's roughly 6x faster for |
See ChainSafe/is-ip#1 (comment) New version of `@chainsafe/is-ip` provides a node-specific export and faster base implementation. This library unaffected by the breaking change
## [11.0.7](v11.0.6...v11.0.7) (2022-11-02) ### Dependencies * update @chainsafe/is-ip ([#281](#281)) ([fc6b600](fc6b600)), closes [/github.com/ChainSafe/is-ip/pull/1#issuecomment-1295761316](https://github.com/multiformats//github.com/ChainSafe/is-ip/pull/1/issues/issuecomment-1295761316)
## [3.0.3](v3.0.2...v3.0.3) (2022-12-07) ### Bug Fixes * update project readme ([#66](#66)) ([7e977a2](7e977a2)) ### Dependencies * bump private-ip from 2.3.4 to 3.0.0 ([#63](#63)) ([956f404](956f404)), closes [ChainSafe/is-ip#1](ChainSafe/is-ip#1) [#19](#19) [#21](#21) * **dev:** bump it-all from 1.0.6 to 2.0.0 ([#62](#62)) ([99cca25](99cca25)), closes [#28](#28) [#28](#28) [#27](#27) [#24](#24) * **dev:** bump it-map from 1.0.6 to 2.0.0 ([#61](#61)) ([88b05b4](88b05b4)) * **dev:** bump uint8arrays from 3.1.1 to 4.0.2 ([#60](#60)) ([ca0b632](ca0b632)), closes [#41](#41) [#40](#40) [#28](#28) [#41](#41) [#40](#40) [#28](#28) [#41](#41) [#40](#40) [#28](#28)
Implementation snatched from rust stdlib
between 30 and 300x faster than
isIP
fromis-ip