sonia-js/node_modules/pstree.remy
2024-07-20 14:47:23 -06:00
..
lib init 2023-03-30 09:45:31 +00:00
tests init 2023-03-30 09:45:31 +00:00
.travis.yml init 2023-03-30 09:45:31 +00:00
LICENSE init 2023-03-30 09:45:31 +00:00
package.json a 2024-07-20 14:47:23 -06:00
README.md init 2023-03-30 09:45:31 +00:00

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