Module

x/path_to_regexp/index.ts>tokensToRegexp

Turn a path string such as `/user/:name` into a regular expression
Go to Latest
function tokensToRegexp
import { tokensToRegexp } from "https://dotland.deno.dev/x/path_to_regexp@v6.2.1/index.ts";

Expose a function for taking tokens and returning a RegExp.

Parameters

tokens: Token[]
optional
keys: Key[]
optional
options: TokensToRegexpOptions = [UNSUPPORTED]