Feature request: Add support to tail stdin
Hi, thanks for this very useful package. I have been using it for some tests and I would like to now if it is possible to expand it to support reading input from stdin instead of a file. This would allow to instead of doing:
./program > log.txt node tail.js log.txt
To simply do:
./program | node tail.js
This would avoid disk writing.
I'm not a Node programmer so I don't know how to change the code to add such support, and I tried looking for solutions to this but could not find anything as nice as node-tail.
hi @00cpxxx ,
Thanks for youe feature request.
Is there anything that stops you to use your shell tail?
./ program | tail
No need to use a node library here, bash (or whatever shell you like to use) already supports your use case.
Thanks for the reply. I'm using your package to feed a websocket and show contents in a browser in another location.