pamoja for TypeScript - v0.1.17
    Preparing search index...

    Function toCbor

    • Encodes a value as CBOR, which is typically much smaller than its JSON form.

      Parameters

      • value: unknown

        Any JSON-serializable value, or the raw bytes of a JSON document.

      Returns Buffer

      The CBOR encoding.

      If the value cannot be encoded.