@jsango/router
v1.3.0
Published
Route registration and route matching for jsango
Readme
@jsango/router
High-performance Segment Radix Trie router (>7.7M ops/sec), typed constraints, route groups, and RFC 7231 compliance.
Part of the jsango backend framework for TypeScript.
Installation
pnpm add @jsango/routerUsage
import { Router } from '@jsango/router';
const router = new Router();
router.get('/users/:id<number>', (ctx) => ({ id: ctx.request.params.id }));
router.compile();Documentation
For full architecture documentation and guides, visit the jsango documentation.
License
MIT © jsango contributors
