dCBOR Pattern TypeScript - v1.0.0-alpha.20
    Preparing search index...

    Function formatPathsWithCaptures

    • Format multiple paths with captures in a structured way. Captures come first, sorted lexicographically by name, with their name prefixed by '@'. Regular paths follow after all captures.

      Parameters

      • paths: Path[]

        The paths to format

      • captures: Map<string, Path[]>

        Named capture groups and their paths

      • opts: FormatPathsOpts = DEFAULT_FORMAT_OPTS

        Formatting options

      Returns string

      The formatted string