ps-aux
v0.2.1
Published
Supplies process information via the ps aux command.
Downloads
41
Readme
ps-aux 
Supplies process information via the ps aux
command.
Tested on Linux and OSX.
var Psaux = require('psaux')
, psaux = Psaux();
psaux.parsed(function (err, res) {
if (err) return console.error(err);
console.log(res);
})
[
{ user: 'thlorenz',
pid: 1050,
'%cpu': 2.6,
'%mem': 1.3,
vsz: 4490356,
rss: 217636,
tty: '??',
state: 'S',
started: '5Aug14',
time: '123:03.05',
command: '/Applications/iTerm.app/Contents/MacOS/iTerm' },
{ user: '_coreaudiod',
pid: 257,
'%cpu': 0.6,
'%mem': 0.2,
vsz: 2553344,
rss: 38572,
tty: '??',
state: 'Ss',
started: '5Aug14',
time: '32:23.58',
command: '/usr/sbin/coreaudiod' },
[...]
]
Table of Contents generated with DocToc
Installation
npm install ps-aux
API
generated with docme
License
MIT