Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
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 0 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.