An open API service indexing awesome lists of open source software.

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

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();
});
});