Transform JavaScript values into CBOR bytes

new Encoder(options: Object)
Parameters
options (Object = {})
Static Members
encode(o)
Instance Members
write(obj)
pushAny(obj)

Transform binary cbor data into JavaScript objects.

new Decoder(opts: Object)
Parameters
opts (Object = {})
Static Members
decode(input, enc)
decodeAll(input, enc)

Output the diagnostic format from a stream of CBOR bytes.

new Diagnose()

Extends Decoder

A CBOR tagged item, where the tag does not have semantics specified at the moment, or those semantics threw an error during parsing. Typically this will be an extension point you're not yet expecting.

new Tagged(tag: Number, value: any, err: Error)
Parameters
tag (Number) the number of the tag
value (any) the value inside the tag
err (Error) the error that was thrown parsing the tag, or null
Instance Members
toString()
encodeCBOR(gen)
convert(converters)

A CBOR Simple Value that does not map onto a known constant.

new Simple(value: integer)
Parameters
value (integer) the simple value's integer value
Static Members
isSimple(obj)
decode(val, hasParent)
Instance Members
toString()
inspect()
encodeCBOR(gen)