@blockchaincommons/dcbor-parse - v1.0.0-beta.3
    Preparing search index...

      @blockchaincommons/dcbor-parse - v1.0.0-beta.3

      dCBOR diagnostic notation → CBOR: parseDcborItem("[1, h'ff', 'isA', date(2023-01-01)]").

      • Parse: parseDcborItem(src, options?) returns a Cbor or throws DcborParseError; tryParseDcborItem returns { ok, value } | { ok, error } instead. parseDcborItemPartial/tryParseDcborItemPartial parse the first item and report how much source it took.
      • Compose: composeDcborArray(items, options?) and composeDcborMap(items, options?) parse each item; DcborComposeError wraps an item's error as cause.
      • Options: tags and knownValues choose where names resolve (the global stores by default); maxDepth bounds nesting (1 000).
      • Errors: code says why, details is typed by code (an UnexpectedToken carries the Token), fullMessage(source) draws a caret. Arguments of the wrong type throw TypeError.
      • Lexer: @blockchaincommons/dcbor-parse/lexer (beta).
      DcborParseError
      DcborComposeError
      Span
      KnownValueResolver
      ParseOptions
      ParsedPrefix
      DcborResult
      DcborParseErrorCode
      DcborParseErrorDetails
      DcborParseErrorDetailsByCode
      DcborParseErrorTyped
      DcborComposeErrorCode
      DcborComposeErrorDetails
      DcborComposeErrorDetailsByCode
      DcborComposeErrorTyped
      Token
      TokenKind
      DcborParseErrorCode
      DcborComposeErrorCode
      composeDcborArray
      composeDcborMap
      tryComposeDcborArray
      tryComposeDcborMap
      span
      spanToByteOffsets
      parseDcborItem
      tryParseDcborItem
      parseDcborItemPartial
      tryParseDcborItemPartial