0.1.0 • Published 12 years ago
out-stream v0.1.0
out-stream
stdout or -o command line file write stream (stream2 for node 0.8.x)
Use Case
Assist with pipable shell. Also see in-stream
Install
npm install out-streamUsage
myapp:
#!/usr/local/bin/node
outStream = require('out-stream')
process.stdin.pipe(outStream)ls | ./myapp
// myapp
// sample.txt
ls | ./myapp -o sample.txtsample.txt after first run
myappsample.txt after second run
myapp
sample.txtRemember to chmod a+x myapp to make it executable
License
MIT
0.1.0
12 years ago