Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
Christian Ziermann b8da0c7023 Initial commit 4 år sedan
..
lib Initial commit 4 år sedan
tests Initial commit 4 år sedan
.travis.yml Initial commit 4 år sedan
LICENSE Initial commit 4 år sedan
README.md Initial commit 4 år sedan
package.json Initial commit 4 år sedan

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