stdin or -f command line file read stream (stream2 for node 0.8.x)
npm install in-streamstdin or -f command line file read stream (stream2 for node 0.8.x)
Assist with pipable shell. Also see out-stream
``sh`
npm install in-stream
sample.txt
``
hello
myapp:
`js`
#!/usr/local/bin/node
inStream = require('in-stream')
inStream.pipe(process.stdout)
`sh
ls | ./myapp
// myapp
// sample.txt
./myapp -f sample.txt
// hello
`
Remember to `chmod a+x myapp`` to make it executable