Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
express-climber
Advanced tools
npm install --save express-climber
This package aims to list all your routes declared in a Router or in an Application. It is tested with express at version 4.13.3
. Please tell me if with another version this module fails.
Middleware or router handler have a name, a description and a long_description.
The name is the function name. To fill description and long_description, add those properties to the function like this:
function myHandle(req, res) {
...
}
myHandle.description = 'This is the description';
myHandle.long_description = 'This is the long description where you can describe better the behaviour for this handler.';
If you want to hide a middleware, add hideInClimber
property to the function like this:
function myMiddleware(req, res, next) {
...
}
myMiddleware.hideInClimber = true;
And myMiddleware
will be not listed.
Return a complex structure. In the structure the keys are the routes and the values are a description of what is attached there Example of output:
{
'/': {
get: { middlewares: [ ... ] },
post: { middlewares: [ ... ] },
put: { middlewares: [ ... ] },
delete: { middlewares: [ ... ] }
},
'/foo': {
get: { handle: { ... }, middlewares: [ ... ] },
post: { handle: { ... }, middlewares: [ ... ] }
}
}
See the tests for more informations.
This returns na array that contains all routes defined. Example of output:
[
{
method: 'get',
middlewares: [ ... ],
handle: { ... },
url: '/foo'
},
{
method: 'post',
middlewares: [ ... ],
handle: { ... },
url: '/foo'
},
{
method: 'delete',
middlewares: [ ... ],
handle: { ... },
url: '/bar'
}
]
Any suggestion are accepted. Please open an issue or make a PR.
FAQs
Express router autodoc
The npm package express-climber receives a total of 1 weekly downloads. As such, express-climber popularity was classified as not popular.
We found that express-climber demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.