Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Peel is a simple library to help with testing and development of modular plugin based [Hapi](http://hapijs.org) servers. It simply checks if your module is being required (by checking `module.parent`). If your module is not being required, it will create
Peel is a simple library to help with testing and development of modular plugin based
Hapi servers. It simply checks if your module is being required (by
checking module.parent
). If your module is not being required, it will create a Hapi
server, register your plugin module, and pass back the server object for you to start the
server with.
Peel fully expects you follow the Hapi plugin interface conventions. This allows you to use your plugin module as a true plugin or directly with Peel.
npm install hapi-peel
The only special behavior that exists if if you choose not to pass in a callback to Peel.create
,
which will auto start the Hapi server. Otherwise you have full control over when the server starts.
var Peel = require('hapi-peel');
// Hapi plugin config
// exports.register = function () {}
Peel.create(module, {
port: 8080
});
Creates Hapi server if not required, otherwise calls back with no server.
module
is required, as well as config
.
config
approximates Hapi's server arguments host
, port
, options
:
MIT
FAQs
Peel is a simple library to help with testing and development of modular plugin based [Hapi](http://hapijs.org) servers. It simply checks if your module is being required (by checking `module.parent`). If your module is not being required, it will create
The npm package hapi-peel receives a total of 5 weekly downloads. As such, hapi-peel popularity was classified as not popular.
We found that hapi-peel 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.