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

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

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

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

Parameters

path: string

Returns

string