Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as torrent from "https://raw.githubusercontent.com/rclarey/torrent/master/bencode.ts";

§Functions

bdecode

Decode data from a byte array into native data types

bdecodeBytestringMap

special case of bdecode when we are expecting a top level key files whose value is a map of infohashes to file info

bencode

Encode data into a byte array suitable for transmitting

§Interfaces

BencodeableDict
BencodeableList

§Type Aliases

Bencodeable

Data that is able to be bencoded