Format a CBOR value - or a walk visitor's WalkElement - as CBOR diagnostic notation.
WalkElement
diagnostic(value); // pretty-printeddiagnostic(value, { flat: true }); // single linediagnostic(value, { annotate: true }); // tag names as annotationsdiagnostic(value, { summarize: true }); // registered summarizers (implies flat) Copy
diagnostic(value); // pretty-printeddiagnostic(value, { flat: true }); // single linediagnostic(value, { annotate: true }); // tag names as annotationsdiagnostic(value, { summarize: true }); // registered summarizers (implies flat)
CBOR value, or a WalkElement from a walk visitor
Optional
Formatting options (explicit undefined fields mean "use the default")
undefined
Format a CBOR value - or a walk visitor's
WalkElement- as CBOR diagnostic notation.