Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
system-stats
Advanced tools
Access host's file system, processor and memory usage.
This NPM package is written in ES6, so it is recommended to use strictly Node >= v6.4.0.
This package returns a Promise:
const system_stats = require('./system-stats.js')
// (1) Ask for system stats
system_stats.get()
// (2) Process promise response
.then( ( results ) => {
console.dir( results )
}, ( error ) => {
console.error( error )
} )
Parameters and Units
{
// [1, 5, 15]-minute CPU avgs normalized to [0.0, 1.0]:
proc: [ 0.005576171875, 0.008974609375, 0.010400390625 ],
mem: {
total: 16737234944, // bytes
free: 4571918336, // bytes
load: 0.7268414794141997 // normalized to [0.0, 1.0]
},
uptime: 747954, // seconds
fs: {
available: 2335936512, // bytes
free: 5330980864, // bytes
total: 58495991808, // bytes
load: 0.9600667252609856 // normalized to [0.0, 1.0]
}
}
FAQs
Access host's file system, processor and memory usage.
The npm package system-stats receives a total of 1 weekly downloads. As such, system-stats popularity was classified as not popular.
We found that system-stats 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.