From e4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 28 Jun 2025 17:26:46 -0700 Subject: initial commit: scaffolding --- node_modules/spawn-command/lib/spawn-command.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 node_modules/spawn-command/lib/spawn-command.js (limited to 'node_modules/spawn-command/lib') diff --git a/node_modules/spawn-command/lib/spawn-command.js b/node_modules/spawn-command/lib/spawn-command.js new file mode 100644 index 0000000..24d56ab --- /dev/null +++ b/node_modules/spawn-command/lib/spawn-command.js @@ -0,0 +1,17 @@ +var util = require('util'); +var spawn = require('child_process').spawn; + +module.exports = function (command, options) { + var file, args; + if (process.platform === 'win32') { + file = 'cmd.exe'; + args = ['/s', '/c', '"' + command + '"']; + options = util._extend({}, options); + options.windowsVerbatimArguments = true; + } + else { + file = '/bin/sh'; + args = ['-c', command]; + } + return spawn(file, args, options); +}; -- cgit v1.2.3