import { encode } from "https://deno.land/x/bencodex@0.2.2/mod.ts";
Encodes a Bencodex value and returns the encoded bytes.
This function allocates a new buffer and returns the encoded bytes. If you want to encode a value into a pre-allocated buffer, use encodeInto instead.