Skip to main content
Module

x/cbor_redux/mod.ts>parse

The Concise Binary Object Representation (CBOR) data format (RFC7049) implemented in pure JavaScript, revived.
Latest
function parse
Re-export
import { parse } from "https://deno.land/x/cbor_redux@1.0.0/mod.ts";

Alias of decode. Converts a Concise Binary Object Representation (CBOR) buffer into an object.

Parameters

data: ArrayBuffer | SharedArrayBuffer
  • A valid CBOR buffer.
reviver: CBORReviver | null | undefined
  • If a function, this prescribes how the value originally produced by parsing is transformed, before being returned.
cborOptions: CBORSequenceOptions
  • An options bag to specify the dictionary type and mode for the decoder.

Returns

The CBOR buffer converted to a JavaScript value.

Parameters

data: ArrayBuffer | SharedArrayBuffer
optional
reviver: CBORReviver | null
optional
cborOptions: CBOROptions