system-prompts-and-models-o.../unified-ai-platform/node_modules/pstree.remy
dopeuni444 ae726301f8 KI
KJ
2025-08-06 11:08:49 +04:00
..
lib KI 2025-08-06 11:08:49 +04:00
tests KI 2025-08-06 11:08:49 +04:00
.travis.yml KI 2025-08-06 11:08:49 +04:00
LICENSE nhj 2025-07-31 12:23:33 +04:00
package.json KI 2025-08-06 11:08:49 +04:00
README.md KI 2025-08-06 11:08:49 +04: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");