Package Exports
- child-process-promise
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (child-process-promise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
child-process-promise
Simple wrapper around the "child_process" module that makes use of promises
Installation
npm install child-process-promise --saveUsage
var exec = require('child-process-promise').exec;
exec('echo hello')
.then(function(result) {
var stdout = result.stdout;
var stderr = result.stderr;
console.log('stdout: ', stdout);
console.log('stderr: ', stderr);
})
.fail(function(err) {
console.error("ERROR: ", err);
})
.progress(function(childProcess) {
console.log('childProcess.pid: ', childProcess.pid);
});