Concise Binary Object Representation (CBOR)

Based on the specification here

(old)

API

encode function

decode function

Tag class

Types

Booleans, null, undefined

Numbers

Strings

// NOTE: emoji don't work -- represented by more than one byte // const input ="☃★♲";

Bytes

Integers

Arrays

Objects/Maps

Tags

Testing

deno run --allow-read test.mjs