
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.