A crazy fast HTTP router, internally uses a highly performant Radix Tree (aka compact Prefix Tree), supports route params, wildcards, and it's framework is independent. You can set a custom length for parameters in parametric (standard, regex and multi) routes by using maxParamLength option, the default value is 100 characters. If you are using a regex-based route, find-my-way will throw an error if detects potentially catastrophic exponential-time regular expressions (internally uses safe-regex2). According to RFC3986, find-my-way is case-sensitive by default. You can disable this by setting the caseSensitive option to false: in that case, all paths will be matched as lowercase, but the route parameters or wildcards will maintain their original letter casing.

Features

  • Last argument, store is used to pass an object that you can access later inside the handler function
  • The default query string parser that find-my-way uses is fast-querystring module
  • Regular expression routes are supported as well
  • You can set a custom length for parameters in parametric (standard, regex and multi) routes
  • You can pass a default route with the option defaultRoute
  • Supports route params, wildcards, and it's framework independent

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow find-my-way

find-my-way Web Site

Other Useful Business Software
Catch Bugs Before Your Customers Do Icon
Catch Bugs Before Your Customers Do

Real-time error alerts, performance insights, and anomaly detection across your full stack. Free 30-day trial.

Move from alert to fix before users notice. AppSignal monitors errors, performance bottlenecks, host health, and uptime—all from one dashboard. Instant notifications on deployments, anomaly triggers for memory spikes or error surges, and seamless log management. Works out of the box with Rails, Django, Express, Phoenix, Next.js, and dozens more. Starts at $23/month with no hidden fees.
Try AppSignal Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of find-my-way!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript HTTP Servers, JavaScript HTTP Clients

Registered

2023-05-15