It appears you have a well-structured Git repository with various files, including SVG icons and HTML documents. Here's a brief overview:
This commit is contained in:
17
backend/node_modules/spawn-command/lib/spawn-command.js
generated
vendored
Normal file
17
backend/node_modules/spawn-command/lib/spawn-command.js
generated
vendored
Normal file
@@ -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);
|
||||
};
|
Reference in New Issue
Block a user