Skip to content

danielhusar/exec-chainable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exec Chainable Build Status

Exec shell command and return promise so you can chain commands

Install

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

About

Exec shell command and return promise so you can chain commands

Resources

License

Stars

Watchers

Forks

Packages

No packages published