0.0.3 • Published 10 years ago

exec-chainable v0.0.3

Weekly downloads
47
License
-
Repository
github
Last release
10 years ago

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