0.2.0 • Published 3 years ago

@brandonocasey/spawn-promise v0.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

@brandonocasey/spawn-promise

A wrapper around spawn that returns a promise with the similar output to spawnSync.

Installation

Install @brandonocasey/spawn-promise and in-publish via npm

$ npm install --save-dev @brandonocasey/spawn-promise in-publish

Usage

Similar to child_process.spawnSync except we return a promise and use child_process.spawn internally. See the return value of childProcess.spawnSync for what the promise will be resolved with. In addion to the usual return values we also add in stdin and combined. combined is mixed stdout/stderr output.

Support

Currently we support 1 to 1 the spawn API from child_process, but signals, killing, and stdin support has not been tested.