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

x/path_to_regexp/index.ts>PathToRegexpOptions

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

Properties

optional
end: boolean

Matches the path completely without trailing characters. (default: true)

optional
trailing: boolean

Allows optional trailing delimiter to match. (default: true)

optional
sensitive: boolean

Match will be case sensitive. (default: false)

optional
delimiter: string

The default delimiter for segments. (default: '/')