🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

bleb

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bleb - npm Package Compare versions

Comparing version
0.0.2
to
0.1.0-1fdc6c6
+20
-0
index.d.ts

@@ -10,4 +10,24 @@ /**

export declare function fromBigInt(integer: bigint): number[];
/**
* @example Basic Usage
* ```ts
* import * as Bleb from "bleb"
*
* console.log(Bleb.toBigInt([ 232, 6 ])) // 1000n
* ```
*
* @example Less-Basic Usage
* ```ts
* import * as Bleb from "bleb"
*
* // some data with bleb at byte offset 2
* const u8View = new Uint8Array([ 177, 218, 232, 6, 197, 165, 75, 177 ])
* const index = { $: 2 }
*
* console.log(Bleb.toBigInt(u8View, index)) // 1000n
* console.log(index) // { $: 4 }
* ```
*/
export declare function toBigInt(data: Record<number, number>, index?: {
$: number;
}): bigint;
+1
-1
{
"name": "bleb",
"version": "0.0.2",
"version": "0.1.0-1fdc6c6",
"description": "Better LEB128",

@@ -5,0 +5,0 @@ "repository": "github:samualtnorman/bleb",