BC-DCBOR TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Function summary

    • Format CBOR value using custom summarizers for tagged values.

      If a summarizer is registered for a tagged value, uses that instead of showing the full content.

      Parameters

      • cbor: Cbor

        CBOR value to format

      Returns string

      Summarized diagnostic string

      // If a summarizer is registered for tag 123:
      const tagged = cbor({ type: MajorType.Tagged, tag: 123, value: ... });
      console.log(summary(tagged));
      // "custom-summary" (instead of full content)