exec-stream

stream to a child process

exec-stream

stream to a child process

var execStream = require('exec-stream')
 
// a strawman wrapper of `cat` 
 
process.stdin
  .pipe(execStream('cat', process.argv.slice(2)))
  .pipe(process.stdout)

available as example.js in the package root.

execStream: (command: String, args?: Array, opts?: Object) => DuplexStream

The returned DuplexStream is the stdin and stdout of the execd process.

$ npm install exec-stream

From package root:

$ npm install
$ npm test

MIT. (c) 2013 jden jason@denizac.org. See LICENSE.md