https://github.com/remy/pstree
Cross platform ps-tree (including unix flavours without ps)
https://github.com/remy/pstree
Last synced: 7 months ago
JSON representation
Cross platform ps-tree (including unix flavours without ps)
- Host: GitHub
- URL: https://github.com/remy/pstree
- Owner: remy
- License: mit
- Created: 2017-12-15T12:21:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T12:35:57.000Z (over 5 years ago)
- Last Synced: 2024-10-29T12:59:28.046Z (11 months ago)
- Language: JavaScript
- Size: 44.9 KB
- Stars: 8
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pstree.remy
> Cross platform ps-tree (including unix flavours without ps)
## Installation
```shel
npm install pstree.remy
```## Usage
```js
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");
```