A fast radix tree router.
@mapl/router
supports two basic patterns:
'/*/info' // Capture the value of a segment
'/**' // Capture everything after the slash
These links mentioned below only works on Github.
See jit.ts for jit compilation usage.
You can view example compiler outputs in snapshots.
For jitless examples see:
- regexp.ts: A RegExp router based on
@mapl/router
tree structure. - tree.ts: A jitless tree router based on
@mapl/router
tree structure.
See routers guide for routers benchmarking.