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

x/bencodex/src

An alternative take on implementing Bencodex in TypeScript/JavaScript
Latest
Index
consts.ts
decoder.ts

This module contains functions for decoding Bencodex values.

dict.ts

This module provides a BencodexDictionary class which implements Dictionary interface. Although an encoder can take any object implementing the Dictionary interface (e.g., a Map object), a decoder always represents a Bencodex dictionary as a BencodexDictionary so that it can guarantee the sensible behavior according to the Bencodex specification.

encoder.ts

This module contains functions for encoding values into bytes.

types.ts

This module provides a basic type definitions for Bencodex, and some utility functions for them.

utils.ts