This is a custom tail -f
command implemetation in nodejs and using browser as command output implemented over websocket. Server uses port - 9211
, you can change this in server.js
file.
- Clone this repo
cd ./nodetailf
npm install
node server.js <file-path>
example -node server.js ./file.log
- Monitor the tailed file at - http://127.0.0.1:port in any browser.
You can run cd nodetailf & node writer.js <file-path>
to append random data at specific interval in case you want to avoid adding new text lines in file manually.