
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
restify-namespace
Advanced tools
Defining sub-routes is something that happens often. Why keep repeating yourself? restify-namespace makes it easy to define nested route prefixes to DRY up your routes.
npm install --save restify-namespace
Here is how you might define some routes:
var namespace = require('restify-namespace');
var app = restify.createServer();
namespace(app, '/api', function () {
app.get('/thingys', thingysHandler);
namespace(app, '/beep', function () {
app.get('/boop', plunkHandler);
});
});
This would create the following routes:
GET /api/thingys
GET /api/beep/boop
At the moment restify-namespace does not support regular expression subroutes. It will throw to warn you of this.
FAQs
Namespace your restify routes
The npm package restify-namespace receives a total of 8 weekly downloads. As such, restify-namespace popularity was classified as not popular.
We found that restify-namespace 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.