exec-chainable

0.0.3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    158
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    158
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i exec-chainable

Weekly Downloads

107

Version

0.0.3

License

none

Last publish

Collaborators

  • efrafa