✨
This commit is contained in:
26
Assignment-3/node_modules/pstree.remy/README.md
generated
vendored
Normal file
26
Assignment-3/node_modules/pstree.remy/README.md
generated
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
# 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");
|
||||
```
|
Reference in New Issue
Block a user