npm.io
1.1.8 • Published 6 years ago

pstree.remy

Licence
MIT
Version
1.1.8
Deps
0
Size
15 kB
Vulns
0
Weekly
0
Stars
9

pstree.remy

Cross platform ps-tree (including unix flavours without ps)

Installation

npm install pstree.remy

Usage

const psTree = psTree require('pstree.remy');

psTree(PID, (err, pids) => {
  if (err) {
    console.error(err);
  }
  console.log(pids)
});

console.log(psTree.hasPS
  ? "This platform has the ps shell command"
  : "This platform does not have the ps shell command");

Keywords