Installation
Install @bomb.sh/router with your package manager:
npm install @bomb.sh/routerpnpm add @bomb.sh/routeryarn add @bomb.sh/routerbun add @bomb.sh/routerdeno add npm:@bomb.sh/routerRequirements
Section titled “Requirements”- ES modules: The package ships ES modules only.
- Node.js 20 or later: Deno and Bun run it too.
- TypeScript types included: No separate
@typespackage is needed.
Add a schema library
Section titled “Add a schema library”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:
npm install zodpnpm add zodyarn add zodbun add zoddeno add npm:zod