@blockchaincommons/dcbor - v1.0.0-beta.1
    Preparing search index...

    Function diagnostic

    • Format a CBOR value - or a walk visitor's WalkElement - as CBOR diagnostic notation.

      diagnostic(value);                       // pretty-printed
      diagnostic(value, { flat: true }); // single line
      diagnostic(value, { annotate: true }); // tag names as annotations
      diagnostic(value, { summarize: true }); // registered summarizers (implies flat)

      Parameters

      • input: Cbor | WalkElement

        CBOR value, or a WalkElement from a walk visitor

      • Optionalopts: DiagFormatOpts

        Formatting options (explicit undefined fields mean "use the default")

      Returns string