pstree.remy

Collects the full tree of processes from /proc

MIT 9 个版本
安装
npm install pstree.remy
yarn add pstree.remy
pnpm add pstree.remy
bun add pstree.remy
README

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");
版本列表
1.1.8 2020-05-16
1.1.7 2019-05-29
1.1.6 2018-12-14
1.1.5 2018-12-14
1.1.4 2018-12-10
1.1.3 2018-12-10
1.1.2 2018-11-22
1.1.1 2018-11-22
1.1.0 2017-12-20