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);