An open API service indexing awesome lists of open source software.

https://github.com/anshuman-singh-93/node-tail

Read Last Line of a file in Realtime
https://github.com/anshuman-singh-93/node-tail

fs lastline line-reader nodejs read-line-by-line tail

Last synced: 2 months ago
JSON representation

Read Last Line of a file in Realtime

Awesome Lists containing this project

README

          

# node-tail
Read Last Line of a file in Realtime

# Usage-

const { Tail } = require('tail-me')

const tail = new Tail( { filename : 'your filepath'})

tail.on('line',(newLine)=>{
console.log(newLine)
})

tail.on('error',(e)=>{
console.log(e)
})