Comparing version 4.0.0 to 4.0.1
{ | ||
"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::" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5829
43