
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
@videoamp/hapi-route-autoloader
Advanced tools
Loads Hapi routes according to VideoAmp Hapi project structure.
A Hapi plugin that provides an auto-loader for Hapi routes from a specified directory.
yarn
yarn add @videoamp/hapi-route-autoloader
npm
npm install --save @videoamp/hapi-route-autoloader
This package provides a Hapi plugin which loads routes according from the directory provided to the function. This allows you to customize the directory to load from on a per-project basis.
To use the Hapi plugin, you can require the package directly in server.register
.
An example of server setup is below:
var Hapi = require('hapi');
var server = new Hapi.Server({ port: 8000 });
server.register(require("@videoamp/hapi-route-autoloader")("controllers/"))
.then(() => server.start());
Files inside of the specified directory can export either an array of routes or a single
route object. See the fixtures folder in test/
for an example.
FAQs
Loads Hapi routes according to VideoAmp Hapi project structure.
We found that @videoamp/hapi-route-autoloader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.