Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Status aggregation suite with middle-ware like abilities. Used by the Ravenwall agent.
Node.js status monitoring wares. Used by the Ravenwall node.js agent.
var statware = require("statware")
// Make a logger that logs to the console every minute
var stats = statware.logger(console.log, 60)
// Have it include memory stats
stats.registerHelper(statware.memstats)
// Include process stats
stats.registerHelper(statware.procstats)
// Include system stats
stats.registerHelper(statware.sysstats)
Statware([initial])
Create a statware instance, with optional initial value object of initial
.
statwareInstance.getStats(callback)
Fetch the stats object. The callback
should be of form callback(statsObject)
where statsObject
is a pure Js object with the statware internal stats.
Statware.logger(handle [,seconds])
Log the stats object via handle(stats)
every seconds
seconds. If no seconds
is specified, will only operate when you call statware.log()
.
Calling statware.logger(...)
adds the methods .log()
and .stopLogger()
to the statware instance.
Statware.pusher(options [,seconds])
Similar to the logger, except it will create an http client that will push stats to a Rest api. Adds the methods .push()
and .stopPusher()
to the statware object.
Options:
[string]
e.g. https://push.ravenwall.com/s/my_series_id
Statware.page(port)
Create a thin process stats page http server at port port
. Adds the method .stopPage()
to the statware object.
statwareInstance.registerHelper(helper)
Register an asynchronous helper function to be called whenever stats are being processed (sent/logged). The helper must be in the form of helper(statsObject, next)
and must call next()
one time. The statsObject
is the internal stats object from statware
and can be mutated to add, remove, or modify values.
Statware.procstats
A provided helper that appends some process stats.
Statware.memstats
A provided helper that appends some memory stats.
Statware.sysstats
A provided helper that appends some system stats.
Feel free to use this module directly, though I suggest using it through http://npm.im/ravenwall
MIT
FAQs
Node.js process/system/custom metrics aggregation suite with middle-ware like abilities.
The npm package statware receives a total of 141 weekly downloads. As such, statware popularity was classified as not popular.
We found that statware 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.