Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Wraps child_process.exec, returning a promise.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
scripts
src
test
.gitignore
.npmignore
.tm_properties
.travis.yml
Makefile
README.md
license.txt
package.json

README.md

faithful-exec Build Status Dependency Status

Wraps child_process.exec, returning a promise.

faithful-exec exports a single function that lets you execute system commands via child_process.exec. It adapts the interface of exec as follows:

  • When the command succeeds, the promise gets fulfilled with a result object that has two properties, stderr and stdout.
  • When the command fails, the error object returned by child_process.exec gets extended with two properties: stderr and stdout.

This way, you always have access to a command's full output, regardless of what happens.

Like child_process.exec, faithful-exec also lets you set options through a optional second argument.

Credits

The initial structure of this module was generated by Jumpstart, using the Jumpstart Black Coffee template.

License

faithful-exec is released under the MIT License.
Copyright (c) 2013 Meryn Stol

Something went wrong with that request. Please try again.