
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.
sails-hook-routefactory
Advanced tools
A sailsjs hook that allows a function under sails.config.routefactory to behave like laravel's routing engine.
Installing custom hooks for a sailsjs application is done by installing their npm module as a dependency of the application. Sails picks up these special packages by looking for those modules having a sails.isHook property set to true. So, to start using this hook, just run
npm i sails-hook-routefactory --save
The hook uses the sails.config.routefactory property, which can be set by creating a file underneath your application's config directory called routefactory.js. This file should look like this:
module.exports.routefactory = function(factory) {
factory.resource('user', 'UserController');
factory.group('admin', function() {
factory.get('/info', 'SystemController.diagnostics');
factory.resource('/settings', 'SystemController', {except: ['findOne', 'destroy']});
});
factory.route('POST /logger', 'LoggerController.create');
};
FAQs
a hook to provide laravel-like route generation sugar
The npm package sails-hook-routefactory receives a total of 0 weekly downloads. As such, sails-hook-routefactory popularity was classified as not popular.
We found that sails-hook-routefactory 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.