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

@leichtgewicht/ip-codec

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leichtgewicht/ip-codec - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

index.cjs

27

package.json
{
"name": "@leichtgewicht/ip-codec",
"version": "2.0.3",
"version": "2.0.4",
"description": "Small package to encode or decode IP addresses from buffers to strings.",
"main": "index.js",
"main": "index.cjs",
"types": "types",
"exports": {
".": {
"import": "./index.mjs",
"require": "./index.cjs"
}
},
"scripts": {
"lint": "standard && dtslint --localTs node_modules/typescript/lib types",
"test": "fresh-tape test.js",
"test-cov": "c8 npm run test"
"test": "npm run lint && npm run unit",
"unit": "fresh-tape test.mjs",
"coverage": "c8 npm run unit",
"prepare": "node ./scripts/esm2umd.mjs ipCodec"
},

@@ -32,8 +40,9 @@ "repository": {

"devDependencies": {
"c8": "^7.7.3",
"dtslint": "^4.1.1",
"fresh-tape": "^5.2.4",
"standard": "^16.0.3",
"typescript": "^4.3.5"
"@definitelytyped/dtslint": "0.0.112",
"c8": "^7.11.2",
"esm2umd": "^0.2.0",
"fresh-tape": "^5.5.3",
"standard": "^17.0.0",
"typescript": "^4.6.4"
}
}

@@ -11,3 +11,3 @@ # @leichtgewicht/ip-codec

```js
const { encode, decode, sizeOf, familyOf } = require('@leichtgewicht/ip-codec')
import { encode, decode, sizeOf, familyOf } from '@leichtgewicht/ip-codec'

@@ -55,3 +55,3 @@ const uint8Array = encode("127.0.0.1")

```js
const { v4, v6 } = require('@leichtgewicht/ip-codec')
import { v4, v6 } from '@leichtgewicht/ip-codec'

@@ -58,0 +58,0 @@ v4.decode(v4.encode('127.0.0.1'))

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