Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
express-watcher
Advanced tools
It is a middleware of monitoring Express router, this middleware can be used either globally or on a per-route basis and sends information of response time, used memory and CPU.
It is a middleware of monitoring Express router, this middleware can be used either globally or on a per-route basis and sends information of response time, used memory and CPU.
$ npm install --save express-watcher
var resourceMonitorMiddleware = require('express-watcher').resourceMonitorMiddleware
// example without callback function
app.use(resourceMonitorMiddleware)
var resourceMonitorMiddlewareCB = require('express-watcher').resourceMonitorMiddlewareCB
// example with callback function
app.use(function(req, res, next){
resourceMonitorMiddlewareCB(req, res, next, function(diffJson){
console.log(' diffJson : ', diffJson)
})
})
// {
// diffRss: 0.0078125,
// diffHeapTotal: 0,
// diffHeapUsed: 0.012725830078125,
// diffExternal: 0,
// diffCpu: 0.000427
// }
Return object as a callback:
{ diffRss: 0.0078125,
diffHeapTotal: 0,
diffHeapUsed: 0.012725830078125,
diffExternal: 0,
diffCpu: 0.000427 }
And auto print:
All time high information is printed when closing (CRT+c) the node process
And auto print:
FAQs
It is a middleware of monitoring Express router, this middleware can be used either globally or on a per-route basis and sends information of response time, used memory and CPU.
The npm package express-watcher receives a total of 8 weekly downloads. As such, express-watcher popularity was classified as not popular.
We found that express-watcher 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.