child_pids

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
child_pids
001.0.27 years ago8 years agoMinified + gzip package size for child_pids in KB

Readme

childpids
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