pull-spawn-process
Use pull-streams with
child_process.spawn
stdio
A convenient wrapper around child_process.spawn
for use with pull-stream
var cat = // Read the process's stdout // Write process stdin
Returns a duplex stream with an additional error
prop to handle proc.stderr
. The other child_process methods are available too.
Install
npm install --save pull-spawn-process # with yarn yarn add pull-spawn-process
Usage
spawn(command, args?, options?)
The signature is the same as child_process.spawn
, except returns a duplex pull-stream.
var cat = var echo = var eslint =
The rest of the ChildProcess
methods are exposed on the object
Maintained by Jamen Marz (See on Twitter and GitHub for questions & updates)