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

pstree.remy

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

pstree.remy - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

17

lib/tree.js
'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": {

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