Next Perpendicular Moonlanding

    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

    Install

    npm i exec-chainable

    DownloadsWeekly Downloads

    88

    Version

    0.0.3

    License

    none

    Last publish

    Collaborators

    • efrafa