Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

compile

import { compile } from "https://raw.githubusercontent.com/pillarjs/path-to-regexp/master/src/index.ts";

Compile a string to a template function for the path.

function compile<P extends ParamData = ParamData>(path: Path, options?: CompileOptions & ParseOptions);
§
compile<P extends ParamData = ParamData>(path: Path, options?: CompileOptions & ParseOptions)
[src]

§Type Parameters

§Parameters

§
options?: CompileOptions & ParseOptions optional
[src]