UNPKG

cbor2

Version:

Encode and parse data in the Concise Binary Object Representation (CBOR) data format (RFC8949).

15 lines (12 loc) 396 B
import { C as CommentOptions } from './options-B_2zDXXZ.js'; import './sorts.js'; /** * Create a string that describes the input CBOR. * * @param src CBOR-encoded string or byte array. * @param options Options for decoding. * @returns Comment string. * @throws On invalid CBOR. */ declare function comment(src: Uint8Array | string, options?: CommentOptions): string; export { comment };