import * as pathToRegexp from "https://deno.land/x/path_to_regexp@v8.2.0/index.ts";
Functions
Compile a string to a template function for the path. | |
Transform a path into a match function. | |
Parse a string for the raw tokens. | |
Stringify token data into a path string. |
Interfaces
A set of possible tokens to expand when matching. | |
A match result contains data about the path match. | |
A parameter designed to match arbitrary text within a segment. | |
I Text | Plain text. |
A wildcard parameter designed to match multiple segments. |
Type Aliases
Decode a string into another string. | |
Encode a string into another string. | |
T Key | A token that corresponds with a regexp capture. |
T Keys | A sequence of |
A match is either | |
The match function takes a string and returns whether it matched the path. | |
T Path | Supported path types. |
A sequence of path match characters. |