Pattern matching for dCBOR (Deterministic CBOR) for TypeScript
npm install @bcts/dcbor-pattern> Disclaimer: This package is under active development and APIs may change.
@bcts/dcbor-pattern provides a powerful pattern matching language for querying and extracting data from dCBOR (Deterministic CBOR) structures. It supports value matching, structural patterns, and meta-patterns with named captures.
The pattern language is designed to be expressive yet concise, allowing you to match complex nested structures with simple pattern expressions.
This TypeScript implementation is based on bc-dcbor-pattern-rust v0.11.1 (commit).