ArkanoidTG/WebApp/node_modules/pstree.remy
Лунков Антон 738149c044 Initial commit 2024-11-25 23:14:57 +03:00
..
lib Initial commit 2024-11-25 23:14:57 +03:00
tests Initial commit 2024-11-25 23:14:57 +03:00
.travis.yml Initial commit 2024-11-25 23:14:57 +03:00
LICENSE Initial commit 2024-11-25 23:14:57 +03:00
README.md Initial commit 2024-11-25 23:14:57 +03:00
package.json Initial commit 2024-11-25 23:14:57 +03:00

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