A crazy fast HTTP router, internally uses an highly performant Radix Tree (aka compact Prefix Tree), supports route params, wildcards, and it's framework independent.
If you want to see a benchmark comparison with the most commonly used routers, see here.
Do you need a real-world example that uses this router? Check out Fastify or Restify.
- Install
- Usage
- API
- FindMyWay([options])
- on(method, path, [opts], handler, [store])
- off(methods[], path, [constraints])
- findRoute (method, path, [constraints])
- hasRoute (method, path, [constraints])
- lookup(request, response, [context], [done])
- find(method, path, [constraints])
- prettyPrint([{ method: 'GET', commonPrefix: false, includeMeta: true || [] }])
- reset()
- routes
- Caveats
- Shorthand methods
- Constraints
- Acknowledgements
- License
npm i find-my-way --save