silverwind / cidr-tools

Tools to work with IPv4 and IPv6 CIDR
94 stars 10 forks source link

Use native BigInt #12

Closed silverwind closed 1 year ago

silverwind commented 3 years ago

https://caniuse.com/bigint. It's pretty widely supported already and would allow us to drop a few heavyweight dependencies in process. Only issue is native BigInt is unpolyfillable so users would need to use old versions of the module if they have to support environments that don't support BigInt.

silverwind commented 1 year ago

Mostly done, just need to remove ip-cidr dependency, then it's fully on native BigInt.