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

x/path_to_regexp/index.ts>CompileOptions

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

Properties

optional
encode: Encode | false

Function for encoding input strings for output into the path, or false to disable entirely. (default: encodeURIComponent)

optional
delimiter: string

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