Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

statware

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

statware - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "statware",
"description": "Node.js process/system/custom metrics aggregation suite with middle-ware like abilities.",
"version": "1.0.0",
"version": "1.0.1",
"author": "Bryce B. Baril <bryce@ravenwall.com>",

@@ -6,0 +6,0 @@ "dependencies": {

@@ -13,2 +13,6 @@ "use strict";

stats.installSystemInfo = function () {
var sumSpeed = function (p, c) {
return p + c.speed
}
stats.registerHelper(function (status, next) {

@@ -32,3 +36,4 @@ var sys = status.system_info

sys.cpu_model = cpuinfo[0].model
sys.cpu_speed = cpuinfo.reduce(function (p, c) { return p + c.speed}, 0) / cpuinfo.length
sys.cpu_speed = cpuinfo.reduce(sumSpeed, 0) / cpuinfo.length
sys.hostname = os.hostname()

@@ -35,0 +40,0 @@ status.system_info = sys

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc