1. pstree.remy
Collects the full tree of processes from /proc
pstree.remy
Package: pstree.remy
Created by: remy
Last modified: Fri, 13 May 2022 14:59:47 GMT
Version: 1.1.8
License: MIT
Downloads: 22,915,904
Repository: https://github.com/remy/pstree

Install

npm install pstree.remy
yarn add pstree.remy

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");

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code