Socket
Socket
Sign inDemoInstall

ip-bigint

Package Overview
Dependencies
2
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

2

package.json
{
"name": "ip-bigint",
"version": "3.0.1",
"version": "3.0.2",
"description": "Convert IPv4 and IPv6 addresses to native BigInt and vice-versa",

@@ -5,0 +5,0 @@ "author": "silverwind <me@silverwind.io>",

@@ -17,4 +17,5 @@ # ip-bigint

const {num, version} = parse("2001:db8::");
// => {number: 42540766411282592856903984951653826560n, version: 6}
const {number, version} = parse("2001:db8::");
// => number: 42540766411282592856903984951653826560n
// => version: 6
const ip = stringify({number, version});

@@ -21,0 +22,0 @@ // => "2001:db8::""

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc