
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
restify-route-map
Advanced tools
Dynamically attach routes given a source directory.
npm i restify-route-map -S
// Route File eq. user.js
// A function wrapper is required for each route file
module.exports = function (server) {
server.get('/', (req, res) => {
// Handle request
});
server.post('/', (req, res) => {
// Handle request
});
};
// File where app is initialize eq. app.js
// Import
const restifyRouteMap = require('restify-route-map');
const server = restify.createServer();
// Initialize restify plugins
const options = {
directory: 'controllers',
pattern: '**/*.js'
}
restifyRouteMap(server, options);
caller directory
routes
**/*.js
MIT
FAQs
Dynamically attach routes given a source directory
The npm package restify-route-map receives a total of 1 weekly downloads. As such, restify-route-map popularity was classified as not popular.
We found that restify-route-map 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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.