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
- Host: GitHub
- URL: https://github.com/anshuman-singh-93/node-tail
- Owner: anshuman-singh-93
- Created: 2020-02-04T11:33:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-04T11:47:42.000Z (over 6 years ago)
- Last Synced: 2025-09-20T20:21:30.545Z (9 months ago)
- Topics: fs, lastline, line-reader, nodejs, read-line-by-line, tail
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
})