Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ps-tree

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ps-tree

Get all children of a pid

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2M
decreased by-25.04%
Maintainers
1
Weekly downloads
 
Created

What is ps-tree?

The ps-tree npm package is a utility for listing all processes spawned by a given process, including their pid, command, arguments, and environment. It is particularly useful for managing process trees in Node.js applications, allowing developers to monitor or terminate groups of related processes efficiently.

What are ps-tree's main functionalities?

Listing child processes

This feature allows you to list all child processes spawned by a specific process. The callback function receives an array of child processes, each represented as an object containing details such as pid, command, and arguments.

const psTree = require('ps-tree');
const pid = 1234; // Example PID of the parent process
psTree(pid, function (err, children) {
  console.log(children);
});

Other packages similar to ps-tree

FAQs

Package last updated on 26 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc