Skip to content

Instantly share code, notes, and snippets.

@pegasuskim
Last active December 30, 2015 06:47
Show Gist options
  • Save pegasuskim/5fe2d16b12306a0d3b90 to your computer and use it in GitHub Desktop.
Save pegasuskim/5fe2d16b12306a0d3b90 to your computer and use it in GitHub Desktop.
shell.js usage
var shell = require('./shell');
// execute a single shell command
shell.exec('npm test --coverage', function(err){
console.log('executed test');
}});
// execute multiple commands in series
shell.series([
'node build release'
'git add -A',
'git commit --verbose'
], function(err){
console.log('executed many commands in a row');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment