in-stream

0.1.7 • Public • Published

in-stream

stdin or -f command line file read stream (stream2 for node 0.8.x)

Use Case

Assist with pipable shell. Also see out-stream

Install

npm install in-stream

Usage

sample.txt

hello

myapp:

#!/usr/local/bin/node
inStream = require('in-stream')
inStream.pipe(process.stdout)
ls | ./myapp
// myapp
// sample.txt
 
./myapp -f sample.txt
// hello 

Remember to chmod a+x myapp to make it executable

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.7
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.7
    1
  • 0.1.6
    1
  • 0.1.5
    1
  • 0.1.4
    1

Package Sidebar

Install

npm i in-stream

Weekly Downloads

4

Version

0.1.7

License

none

Last publish

Collaborators

  • angleman