{"repo":"simonepri/pidtree","free":true,"listed":false,"github":"https://github.com/simonepri/pidtree","clone":"git clone https://github.com/simonepri/pidtree.git","description":"🚸 Cross platform children list of a PID.","language":"JavaScript","stars":126,"topics":["ps-tree","tree","ps","pgrep","nodejs","pid","cli","list","pids","ppid"],"license":"MIT","category":"cli-tools","readme_excerpt":"pidtree 🚸 Cross platform children list of a PID. Coded with ❤️ by Simone Primarosa . Synopsis This package is really similar to [ps-tree][gh:ps-tree] but is faster, safer and provides sub-children results. Furthermore ps-tree is [unmaintained][gh:ps-tree-um]. Uuh, and a fancy CLI is also available! Install Requirements: pidtree is an [ESM-only][gh:esm] package and requires Node.js = 18 . If you need CommonJS ( require ) or support for older Node.js versions, stay on pidtree@0.6 . Usage Compatibility Linux FreeBSD NetBSD SunOS macOS Win AIX --- --- --- --- --- --- --- ✅ ❓ ❓ ❓ ✅ ✅ ❓ ✅ = Working ❓ = Not tested but should work Please if your platform is not supported [file an issue][new issue]. CLI Show a tree of the processes inside your system inside your terminal. Just replace $PPID with one of the pids inside your system. Or don't pass anything if you want all the pids inside your system. To display the output as a list, similar to the one produced from pgrep -P $PID , pass the --list flag. API pidtree(pid, [options], [callback]) ⇒ [Promise.&lt;Array.&lt;Object&gt;&gt;] Get the list of children pids of the given pid. Kind : global function Returns : Promise.&lt;Array.&lt;Object&gt;&gt; - Only when the callback is not provided. Access : public Param Type Default Description --- --- --- --- pid Number \\ String A pid. If -1 will return all the pids. [options] Object Optional options object. [options.root] Boolean false Include the provided pid in the list. Ignored if -1 is pass","default_branch":null,"files":null,"tree":[],"storefront":"/r/simonepri","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/simonepri/pidtree/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}