๐ Beencode
A fast Gleam Bencode library.
To add this to your project you can:
gleam add beencode@1
import beencode.{BInt, BList, BString}
pub fn main() {
let assert Ok(BList([BInt(1), BString("wibble")])) =
beencode.decode(<<"li1e6:wibblee":utf8>>)
let assert <<"li1e6:wibblee":utf8>> =
beencode.encode(BList([BInt(1), BString("wibble")]))
}