Skip to main content
Module

x/bencodex/mod.ts>Key

An alternative take on implementing Bencodex in TypeScript/JavaScript
Latest
type alias Key
import { type Key } from "https://deno.land/x/bencodex@0.2.2/mod.ts";

Represents a value which can be used as a key in a Bencodex dictionary. It is either a string ("text" in Bencodex) or a Unit8Array instance ("binary" in Bencodex).

Note that every Key is also a Value (not vice versa).

definition: string | Uint8Array