Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/bencodex/src/utils.ts>decodeAsciiNaturalNumber

An alternative take on implementing Bencodex in TypeScript/JavaScript
Latest
function decodeAsciiNaturalNumber
import { decodeAsciiNaturalNumber } from "https://deno.land/x/bencodex@0.2.2/src/utils.ts";

Parameters

buffer: Uint8Array
type: "number"

Parameters

buffer: Uint8Array
type: "bigint"