routes: An object specifying initial routes to add
strictTrailingSlash: By default router ignored trailing slash for matching and adding routes. When set to true, matching with trailing slash is different.
Route Matcher
Creates a multi matcher from router tree that can match all routes matching path:
It is also possible to export and then rehydrate a matcher from pre-compiled rules.
import { exportMatcher, createMatcherFromExport } from "radix3";// Assuming you already have a matcher// you can export this to a JSON-type objectconst json = exportMatcher(matcher);// and then rehydrate this laterconst newMatcher = createMatcherFromExport(json);const matches = newMatcher.matchAll("/foo/bar/baz");