Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.