mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
18 lines
368 B
JavaScript
18 lines
368 B
JavaScript
var childProcess = require('child_process');
|
|
var which = require('./which');
|
|
|
|
function execFile(cmd, args, opt, cb) {
|
|
cmd = which(cmd);
|
|
childProcess.execFile(cmd, args, opt, cb);
|
|
}
|
|
|
|
function spawn(cmd, args, opt) {
|
|
cmd = which(cmd);
|
|
childProcess.spawn(cmd, args, opt);
|
|
}
|
|
|
|
module.exports = {
|
|
execFile: execFile,
|
|
spawn: spawn
|
|
};
|