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

x/bencodex/src/dict.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/src/dict.ts";

Parameters

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

Returns

string