main
|
Last change
on this file was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
421 bytes
|
| Rev | Line | |
|---|
| [81bc7da] | 1 | # pstree.remy
|
|---|
| 2 |
|
|---|
| 3 | > Cross platform ps-tree (including unix flavours without ps)
|
|---|
| 4 |
|
|---|
| 5 | ## Installation
|
|---|
| 6 |
|
|---|
| 7 | ```shel
|
|---|
| 8 | npm install pstree.remy
|
|---|
| 9 | ```
|
|---|
| 10 |
|
|---|
| 11 | ## Usage
|
|---|
| 12 |
|
|---|
| 13 | ```js
|
|---|
| 14 | const psTree = psTree require('pstree.remy');
|
|---|
| 15 |
|
|---|
| 16 | psTree(PID, (err, pids) => {
|
|---|
| 17 | if (err) {
|
|---|
| 18 | console.error(err);
|
|---|
| 19 | }
|
|---|
| 20 | console.log(pids)
|
|---|
| 21 | });
|
|---|
| 22 |
|
|---|
| 23 | console.log(psTree.hasPS
|
|---|
| 24 | ? "This platform has the ps shell command"
|
|---|
| 25 | : "This platform does not have the ps shell command");
|
|---|
| 26 | ```
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.