2.0.0 • Published 1 year ago

tail-read v2.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
1 year ago

Tail Read

Read the contents of a file and keep it open, streaming changes.

import tailRead from 'tail-read';

const tail = tailRead('./test.txt');

tail.on('line', function(data, lineNumber, bufferPosition) {
  console.log('Appended data: ', data)
  console.log('Line number: ', lineNumber)
  console.log('Buffer position: ', bufferPosition)
});

setTimeout(function () {
  tail.close()
  console.log('closed')
}, 5000)
2.0.0

1 year ago

1.11.0

5 years ago

1.9.0

5 years ago

1.8.0

5 years ago

1.10.0

5 years ago

1.7.0

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago