1.0.0 • Published 10 years ago

runstream v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

runstream

Install with npm install runstream -g.

Run streaming node modules from the command line, where process.stdin will be the input for the stream and process.stdout the output. So it's basically doing process.stdin.pipe(require(file)).pipe(process.stdout)

For example if you have a streaming module that capitalizes the input, you can do:

$ runstream example.js
sdfjk
SDFJK

There is an option --json which allows you to use object streams. The input and ouput will be parsed and serialised as NDJSON.

Also you can omit the .js ending and just do runstream example.

1.0.0

10 years ago