pstree.remy
Advanced tools
Comparing version 1.1.1 to 1.1.2
'use strict'; | ||
/** | ||
* adapted from https://github.com/pkrumins/node-tree-kill | ||
* code credit to @pkrumins | ||
* @remy has just made a few adjustments to remove unneeded functionality | ||
*/ | ||
var childProcess = require('child_process'); | ||
@@ -7,3 +13,3 @@ var spawn = childProcess.spawn; | ||
module.exports = function(pid, signal, callback) { | ||
module.exports = function(pid, callback) { | ||
var tree = {}; | ||
@@ -14,7 +20,2 @@ var pidsToProcess = {}; | ||
if (typeof signal === 'function' && callback === undefined) { | ||
callback = signal; | ||
signal = undefined; | ||
} | ||
switch (process.platform) { | ||
@@ -30,3 +31,3 @@ case 'darwin': | ||
function() { | ||
callback(Object.keys(tree)); | ||
callback(null, Object.keys(tree)); | ||
} | ||
@@ -56,3 +57,3 @@ ); | ||
function() { | ||
callback(Object.keys(tree)); | ||
callback(null, Object.keys(tree)); | ||
} | ||
@@ -59,0 +60,0 @@ ); |
{ | ||
"name": "pstree.remy", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13878
200