@mapl/router
v0.9.0
Published
The fastest possible JS router
Readme
A fast radix tree router.
Patterns
@mapl/router supports two basic patterns:
'/*/info' // Capture the value of a segment
'/**' // Capture everything after the slashUsage
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/routertree structure. - tree.ts: A jitless tree router based on
@mapl/routertree structure.
Benchmark
See routers guide for routers benchmarking.
