chrisdrakeford 9c87c1307d first commit 3 роки тому
..
lib 9c87c1307d first commit 3 роки тому
tests 9c87c1307d first commit 3 роки тому
.travis.yml 9c87c1307d first commit 3 роки тому
LICENSE 9c87c1307d first commit 3 роки тому
README.md 9c87c1307d first commit 3 роки тому
package.json 9c87c1307d first commit 3 роки тому

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