Socket
Socket
Sign inDemoInstall

uint8-varint

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uint8-varint - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

dist/src/big.d.ts

34

package.json
{
"name": "uint8-varint",
"version": "0.0.0",
"version": "1.0.0",
"description": "Read/write varints from Uint8Arrays and Uint8ArrayLists",

@@ -20,2 +20,18 @@ "license": "Apache-2.0 OR MIT",

"types": "./dist/src/index.d.ts",
"typesVersions": {
"*": {
"*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
],
"src/*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
]
}
},
"files": [

@@ -31,2 +47,6 @@ "src",

"import": "./dist/src/index.js"
},
"./big": {
"types": "./src/big.d.ts",
"import": "./dist/src/big.js"
}

@@ -67,11 +87,11 @@ },

{
"type": "chore",
"type": "docs",
"release": "patch"
},
{
"type": "docs",
"type": "test",
"release": "patch"
},
{
"type": "test",
"type": "deps",
"release": "patch"

@@ -131,3 +151,3 @@ },

"build": "aegir build",
"test": "aegir test -t node",
"test": "aegir test",
"test:node": "aegir test -t node --cov",

@@ -143,4 +163,4 @@ "test:chrome": "aegir test -t browser --cov",

"byte-access": "^1.0.0",
"longbits": "^1.0.0",
"uint8arraylist": "^1.5.2"
"longbits": "^1.0.1",
"uint8arraylist": "^2.0.0"
},

@@ -147,0 +167,0 @@ "devDependencies": {

@@ -37,2 +37,18 @@ # uint8-varint <!-- omit in toc -->

`BigInt`s are also supported:
```js
import { Uint8ArrayList } from 'uint8arraylist'
import * as varint from 'uint8-varint/big'
const value = 12345n
const buf = new Uint8ArrayList(
new Uint8Array(2)
)
varint.signed.encode(value, buf)
varint.signed.decode(buf) // 12345n
```
## License

@@ -39,0 +55,0 @@

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