Reads structured data from a CBOR file.
The file must contain a valid CBOR serialization. Mappings will be converted into Typst dictionaries, and sequences will be converted into Typst arrays. Strings and booleans will be converted into the Typst equivalents, null-values (
~ or empty ``) will be converted into
none, and numbers will be converted to floats or integers depending on whether they are whole numbers.
Path to a CBOR file.
Reads structured data from CBOR bytes.
Encode structured data into CBOR bytes.
Value to be encoded.