Optional
encodingIf the input is a string, how should it be decoded into a byte stream? Ignored if the input is a Uint8Array.
Optional
maxMaximum allowed depth to parse into CBOR structures. This limit is security-relevant for untrusted inputs. May be set to Infinity for trusted inputs, but be careful!
Optional
requireReject integers and lengths that could have been encoded in a smaller encoding.
Options for decoding.