
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
hapi-setup-helpers
Advanced tools
hapi helpers for app setup. work with hapi 8.x
npm install --save hapi-setup-helpers
var helper = require('hapi-setup-helpers')(server);
a helper method to allow loading plugins in application start synchronous with async.series for example.
Usage:
async.series([
// load hapi-auth-cookie plugin
helper.loadPlugin(server, 'hapi-auth-cookie', {}, function(next) {
server.auth.strategy('session', 'cookie', {
password: 'i wear no pants',
cookie: 'tbsid',
redirectTo: '/login',
isSecure: false
});
next();
}),
// .. load more plugins
])
Small helper to print error message on failures, or ok on success, print out colors.
Helper to load Routes as a table.
One line has the following fields:
Usage:
helper.loadRouteTable(server, [
// file handler
["GET", "/", "file", "index.html", true],
// javascript handler, supports with multiple methods
[["GET","POST"], "/login", "handler", "login", "login"],
// last parameter indicates that this resource is protected
["GET", "/logout", "handler", "logout", true],
// directory handler
["GET", "/{param*}", "directory", "./", false],
// toothache handler
["GET", "/api/contacts", "toothache", "Contacts.find", true]
// load more routes
]);
FAQs
hapi helpers for app setup
We found that hapi-setup-helpers 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.