import * as pathToRegexp from "https://deno.land/x/path_to_regexp@v7.1.0/index.ts";
Functions
Compile a string to a template function for the path. | |
Create path match function from | |
Parse a string for the raw tokens. | |
Normalize the given path string, returning a regular expression. |
Interfaces
I Key | A key is a capture group in the regex. |
A match result contains data about the path match. | |
Type Aliases
Decode a string into another string. | |
Encode a string into another string. | |
A match is either | |
The match function takes a string and returns whether it matched the path. | |
T Path | Repeated and simple input types. |
A token is a string (nothing special) or key metadata (capture group). |