heystreamer/node_modules/pstree.remy
Bashy 6c7facadce
Some checks failed
CI / check (push) Has been cancelled
rework
2026-04-26 23:00:55 +03:00
..
lib rework 2026-04-26 23:00:55 +03:00
tests rework 2026-04-26 23:00:55 +03:00
.travis.yml rework 2026-04-26 23:00:55 +03:00
LICENSE rework 2026-04-26 23:00:55 +03:00
package.json rework 2026-04-26 23:00:55 +03:00
README.md rework 2026-04-26 23:00:55 +03: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");