tail-me

1.0.2 • Public • Published

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)
})

Readme

Keywords

none

Package Sidebar

Install

npm i tail-me

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

2.63 kB

Total Files

3

Last publish

Collaborators

  • anshuman.singh