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

ip-bigint

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ip-bigint - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

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

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

@@ -15,7 +15,6 @@ # ip-bigint

```js
const {parseIp, stringifyIp} = require("ip-bigint");
import {parseIp, stringifyIp} from "ip-bigint";
const {number, version} = parseIp("2001:db8::");
// => number: 42540766411282592856903984951653826560n
// => version: 6
// => {number: 42540766411282592856903984951653826560n, version: 6}
const ip = stringifyIp({number, version});

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

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