child_pids

1.0.2 • Public • Published

child_pids

Retrieve all pids in a process tree up to certain height.

Installation

npm install child_pids

Usage

var childPids = require('child_pids'),
var parentPid = 56
var maxDepth = 0; // all children. if > 0 only children to that height of the process tree are returned
 
childPids.find(parentPid, maxDepth, function(err, pids) {
    if(!err) {
        console.log('Children pids: ', pids);
    }
});
 

Test

To run the tests execute npm test

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    382
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    382
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i child_pids

Weekly Downloads

159

Version

1.0.2

License

MIT

Last publish

Collaborators

  • vangelov