Skip to content

Installation

Install @bomb.sh/router with your package manager:

Terminal window
npm install @bomb.sh/router
  • ES modules: The package ships ES modules only.
  • Node.js 20 or later: Deno and Bun run it too.
  • TypeScript types included: No separate @types package is needed.

The router validates option and argument values with any Standard Schema library, such as Zod, ArkType, or Valibot. The examples in these docs use Zod:

Terminal window
npm install zod