D8D 2ab642edb8 Initial commit 1 year ago
..
lib 2ab642edb8 Initial commit 1 year ago
tests 2ab642edb8 Initial commit 1 year ago
.travis.yml 2ab642edb8 Initial commit 1 year ago
LICENSE 2ab642edb8 Initial commit 1 year ago
README.md 2ab642edb8 Initial commit 1 year ago
package.json 2ab642edb8 Initial commit 1 year ago

README.md

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");