1.11.0 • Published 4 years ago

tail-read v1.11.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Tail Read

Build Status David DM GitHub code size in bytes GitHub package.json version GitHub

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

const tailRead = require('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)
1.11.0

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.10.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago