summaryrefslogtreecommitdiffstats
path: root/node_modules/npm-run-all/lib/spawn-win32.js
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/npm-run-all/lib/spawn-win32.js
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/npm-run-all/lib/spawn-win32.js')
-rw-r--r--node_modules/npm-run-all/lib/spawn-win32.js50
1 files changed, 0 insertions, 50 deletions
diff --git a/node_modules/npm-run-all/lib/spawn-win32.js b/node_modules/npm-run-all/lib/spawn-win32.js
deleted file mode 100644
index 3743a1d..0000000
--- a/node_modules/npm-run-all/lib/spawn-win32.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * @module spawn-win32
- * @author Toru Nagashima
- * @copyright 2015 Toru Nagashima. All rights reserved.
- * See LICENSE file in root directory for full license.
- */
-"use strict"
-
-//------------------------------------------------------------------------------
-// Requirements
-//------------------------------------------------------------------------------
-
-const crossSpawn = require("cross-spawn")
-
-//------------------------------------------------------------------------------
-// Helpers
-//------------------------------------------------------------------------------
-
-/**
- * Kills the new process and its sub processes forcibly.
- * @this ChildProcess
- * @returns {void}
- */
-function kill() {
- crossSpawn("taskkill", ["/F", "/T", "/PID", this.pid])
-}
-
-//------------------------------------------------------------------------------
-// Public Interface
-//------------------------------------------------------------------------------
-
-/**
- * Launches a new process with the given command.
- * This is almost same as `child_process.spawn`.
- *
- * This returns a `ChildProcess` instance.
- * `kill` method of the instance kills the new process and its sub processes forcibly.
- *
- * @param {string} command - The command to run.
- * @param {string[]} args - List of string arguments.
- * @param {object} options - Options.
- * @returns {ChildProcess} A ChildProcess instance of new process.
- * @private
- */
-module.exports = function spawn(command, args, options) {
- const child = crossSpawn(command, args, options)
- child.kill = kill
-
- return child
-}