https://github.com/addisonelliott/node-psutil
Cross-platform lib for process and system monitoring in NodeJS
https://github.com/addisonelliott/node-psutil
node node-module nodejs nodejs-modules ps util utilities
Last synced: about 1 month ago
JSON representation
Cross-platform lib for process and system monitoring in NodeJS
- Host: GitHub
- URL: https://github.com/addisonelliott/node-psutil
- Owner: addisonElliott
- License: mit
- Created: 2018-08-26T13:37:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-26T13:40:21.000Z (almost 8 years ago)
- Last Synced: 2025-02-02T17:40:09.202Z (over 1 year ago)
- Topics: node, node-module, nodejs, nodejs-modules, ps, util, utilities
- Language: C++
- Size: 101 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
node-psutil
===========
The start of a port of the pyhton library psutil.
Usage
=====
var PSUtil = require('psutil').PSUtil;
var psUtil = new PSUtil();
psUtil.cpu_times(false, function(err, result) {
test.equal(null, err);
test.equal('number', typeof result.user);
psUtil.cpu_times(true, function(err, result) {
test.equal(null, err);
test.equal('number', typeof result[0].user);
test.done();
});
});