index.js
316 Bytes
const childProcess = require('child_process');
const getShell = require('./get-shell');
function spawn(command, spawnOpts) {
const shellDetails = getShell();
return childProcess.spawn(
shellDetails.shell,
[shellDetails.executeFlag, command],
spawnOpts
);
}
module.exports = {
spawn: spawn,
};