0.2.1 • Published 10 years ago

ps-aux v0.2.1

Weekly downloads
148
License
MIT
Repository
github
Last release
10 years ago

ps-aux build status

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

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago