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
Go to Latest
interface PathToRegexpOptions
implements ParseOptions
import { type PathToRegexpOptions } from "https://deno.land/x/path_to_regexp@v7.1.0/index.ts";

Properties

optional
sensitive: boolean

Regexp will be case sensitive. (default: false)

optional
loose: boolean

Allow the delimiter to be arbitrarily repeated. (default: true)

optional
strict: boolean

Verify patterns are valid and safe to use. (default: false)

optional
start: boolean

Match from the beginning of the string. (default: true)

optional
end: boolean

Match to the end of the string. (default: true)

optional
trailing: boolean

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