import * as frugal from "https://deno.land/x/frugal@0.3.0/dep/path-to-regexp.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. | |
Create a path match function from | |
Expose a method for transforming tokens into the path function. | |
Expose a function for taking tokens and returning a RegExp. |
Interfaces
I Key | Metadata about a key. |
A match result contains data about the path match. | |
Type Aliases
A match is either | |
The match function takes a string and returns whether it matched the path. | |
T Path | Supported |
A token is a string (nothing special) or key metadata (capture group). |