cbor2
    Preparing search index...

    Function decode

    • Decode CBOR bytes to a JS value.

      Type Parameters

      • T = unknown

      Parameters

      • src: string | Uint8Array<ArrayBufferLike>

        CBOR bytes to decode.

      • options: DecodeOptions = {}

        Options for decoding.

      Returns T

      JS value decoded from cbor.

      No value found, decoding errors.