append-only-live-stream
Create a live stream from an append-only file.
Get it!
npm install --save append-only-live-stream
Usage
var createWriteStream unlink writeFile =var createLiveStream =var assert =
API
createLiveStream(file[, opts])
Create a readable stream from an append-only file and get live updates of appends. file
indicates an append-only file. Options get passed on to the stream.Readable
constructor and fs.watch
. opts
defaults to:
encoding: null // decode buffers to strings using encodinghighWaterMark: 16384 // readable streams highWatermarkpersistent: false // keep process alive while watching?