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

x/fresh/src/server/fs_extract.ts>pathToPattern

The next-gen web framework.
Extremely Popular
Latest
function pathToPattern
import { pathToPattern } from "https://deno.land/x/fresh@1.7.3/src/server/fs_extract.ts";

Transform a filesystem URL path to a path-to-regex style matcher.

Parameters

path: string

Returns

string