Real-world usage examples for @cookbook/pathkit.
basics/— core API usageconstraints/— built-in and custom constraintsrouting/— router-like usage, API gateways, middleware, fallback handlingapplications/— navigation, SSR, sitemap, breadcrumbs, localizationtesting/— test isolation and error handling
Most examples use root imports:
import { compile, match } from '@cookbook/pathkit';Deep imports are also supported:
import match from '@cookbook/pathkit/match';
import compile from '@cookbook/pathkit/compile';