A ShellJS plugin to add a .bashExec()
method.
$ npm install --save shelljs
$ npm install --save shelljs-plugin-bash-exec
Use this plugin like so:
require('shelljs-plugin-bash-exec');
var shell = require('shelljs);
shell.bashExec('command-to-execute');
...
If you're interested in taking a look at the current state of the ShellJS plugin API, take a look at index.js. This has helpful comments explaining the necessary boilerplate for writing a plugin. For an example usage of the plugin, take a look at test/test.js.