Home

Awesome

Exec Chainable Build Status

Exec shell command and return promise so you can chain commands

Install

npm

npm install --save exec-chainable

Example

var exec  = require('exec-chainable');
exec(command);
var exec  = require('exec-chainable');
exec('echo 1').then(function (stdout) {
  console.log(stdout);
  //=> 1
  return exec('echo 2');
}).done(function (stdout) {
  console.log(stdout);
  //=> 2
});

Options

command

Type: String
Default: ``

Command to execute.

License

MIT © Daniel Husar