Skip to main content
Module

x/path_to_regexp/index.ts>TokensToFunctionOptions

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

Properties

optional
sensitive: boolean

When true the regexp will be case sensitive. (default: false)

optional
encode: (value: string, token: Key) => string

Function for encoding input strings for output.

optional
validate: boolean

When false the function can produce an invalid (unmatched) path. (default: true)