Wraps child_process.exec, returning a promise.
Want to see pretty graphs? Log in now!
npm install faithful-exec
|8||downloads in the last day|
|62||downloads in the last week|
|174||downloads in the last month|
|Last Published By|
|Version||0.1.0 last updated a year ago|
|Keywords||stdout, stderr, output, results, commands, run, promise, promises|
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
resultobject that has two properties,
- When the command fails, the error object returned by
child_process.execgets extended with two properties:
This way, you always have access to a command's full output, regardless of what happens.
child_process.exec, faithful-exec also lets you set options through a optional second argument.
faithful-exec is released under the MIT License.
Copyright (c) 2013 Meryn Stol