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/mod.ts";

§Enums

AnnounceEvent
AnnouncePeerState
CompactValue
UdpTrackerAction

§Variables

UDP_EVENT_MAP

§Functions

announce

Make an announce request to the tracker URL

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

scrape

Make a scrape request to the tracker URL

withConnect

§Interfaces

AnnounceInfo
AnnouncePeer
AnnouncePeerInfo
AnnounceResponse
BencodeableDict
BencodeableList

§Type Aliases

Bencodeable

Data that is able to be bencoded

ScrapeData