chrisdrakeford 9c87c1307d first commit | il y a 3 ans | |
---|---|---|
.. | ||
lib | il y a 3 ans | |
tests | il y a 3 ans | |
.travis.yml | il y a 3 ans | |
LICENSE | il y a 3 ans | |
README.md | il y a 3 ans | |
package.json | il y a 3 ans |
Cross platform ps-tree (including unix flavours without ps)
npm install pstree.remy
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");