summaryrefslogtreecommitdiffstats
path: root/node_modules/pidtree/lib/get.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/pidtree/lib/get.js')
-rw-r--r--node_modules/pidtree/lib/get.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/node_modules/pidtree/lib/get.js b/node_modules/pidtree/lib/get.js
deleted file mode 100644
index 1793d54..0000000
--- a/node_modules/pidtree/lib/get.js
+++ /dev/null
@@ -1,40 +0,0 @@
-'use strict';
-
-var os = require('os');
-
-var platformToMethod = {
- darwin: 'ps',
- sunos: 'ps',
- freebsd: 'ps',
- netbsd: 'ps',
- win: 'wmic',
- linux: 'ps',
- aix: 'ps'
-};
-
-var platform = os.platform();
-if (platform.startsWith('win')) {
- platform = 'win';
-}
-
-var file = platformToMethod[platform];
-
-/**
- * Gets the list of all the pids of the system.
- * @param {Function} callback Called when the list is ready.
- */
-function get(callback) {
- if (file === undefined) {
- callback(
- new Error(
- os.platform() +
- ' is not supported yet, please open an issue (https://github.com/simonepri/pidtree)'
- )
- );
- }
-
- var list = require('./' + file);
- list(callback);
-}
-
-module.exports = get;