Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Apr 20, 2024 via pnpm

tree-kill 1.2.2

kill trees of processes
Package summary
Share
0
issues
1
license
1
MIT
Package created
11 Apr 2013
Version published
11 Dec 2019
Maintainers
2
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
tree-kill@1.2.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of tree-kill 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does tree-kill do?

Tree-kill is an npm package specifically designed to terminate all processes in a given process tree, including the root process. This tool proves essential when needing an assertive method of process management, ensuring all related processes are adequately closed.

How do you use tree-kill?

The tree-kill module can be utilized in numerous ways. Its primary function is terminating a process and all its descendent processes via their process IDs (also known as PIDs). Here are some sample JavaScript code usage examples:

var kill = require('tree-kill');
kill(1);  // This kills all descendent processes of the process with the PID of 1, including the process itself.

To send a signal other than the default SIGTERM, the following would be used:

var kill = require('tree-kill');
kill(1, 'SIGKILL');  // This sends the signal SIGKILL to the process and its descendent processes.

If you wish to execute a callback function after killing the processes, use the following:

var kill = require('tree-kill');
kill(1, 'SIGKILL', function(err) {
    // Insert your code here.
});

It's also notable that tree-kill can be installed globally and then used as a command in the command line interface as follows:

tree-kill 1  // This sends SIGTERM to process 1 and its descendents.
tree-kill 1 SIGTERM  // This does the same as the above.
tree-kill 1 SIGKILL  // This sends KILL instead of TERMINATE.

Where are the tree-kill docs?

You can access the Tree-kill documentation directly from the package's main repository on GitHub. Visit this URL git://github.com/pkrumins/node-tree-kill.git and navigate to the README.md file where you will find all the essential usage instructions and guidelines. This document provides detailed examples of the module's use and outlines its overall functionality.