0.1.0 • Published 9 years ago

extreme-line-reader v0.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

node-extreme-line-reader

A few of the packages out there would mess up the lines on really big files so I built my own. Also, these packages usually don't allow to throttle the read stream which kind of defeats the purpose of such a module...

There is no support for parallel processing yet.

var Reader = require('extreme-line-reader')

var lineReader = new StreamLineReader({stream: stream})

lineReader.on('line', function(line, ack) {
  // use line here
  ack()
})

lineReader.on('end', function() {
  assert.equal(fileData.length, 0, JSON.stringify(fileData))
  done()
})

0.1.0

9 years ago