Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/path_to_regexp/index.ts>compile

Turn a path string such as `/user/:name` into a regular expression
Latest
function compile
import { compile } from "https://deno.land/x/path_to_regexp@v8.2.0/index.ts";

Compile a string to a template function for the path.

Parameters

path: Path
optional
options: CompileOptions & ParseOptions = [UNSUPPORTED]