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

x/bencodex/mod.ts>BencodexDictionary#[Symbol.for("nodejs.util.inspect.custom")]

An alternative take on implementing Bencodex in TypeScript/JavaScript
Latest
method BencodexDictionary.prototype.[Symbol.for("nodejs.util.inspect.custom")]
import { BencodexDictionary } from "https://deno.land/x/bencodex@0.2.2/mod.ts";

Parameters

_: number
options: { compact: number | boolean; depth: number; sorted: boolean; }
inspect: (_: unknown, options: unknown) => string

Returns

string