Skip to content

junosuarez/exec-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exec-stream

stream to a child process

usage

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.

api

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

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

installation

$ npm install exec-stream

running the tests

From package root:

$ npm install
$ npm test

contributors

license

MIT. (c) 2013 jden [email protected]. See LICENSE.md

About

npm module: stream to a child process

Resources

License

Stars

Watchers

Forks

Packages

No packages published