You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation Enhancement Request – Add "Example" Column/Tab for All The Properties #2364
I would like to suggest a small documentation enhancement for pages such as express.Router([options]).
Currently, the documentation shows the property name, description, default value, and availability. While this explains what a property does, it does not show how to use it in practice.
For options like mergeParams, caseSensitive, and strict, I often need to leave the documentation and search Google or Stack Overflow for implementation examples.
A possible improvement would be to add either:
An Example column beside each property, or
An Example tab containing:
Example code
Common use cases
Expected behavior/output
Example:
constrouter=express.Router({mergeParams: true});
This would make the documentation more practical, reduce external searches, and help developers understand features more quickly.
Thank you for considering this suggestion and for maintaining Express.
Activity