extreme-line-reader

0.1.0 • Public • Published

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

``

Readme

Keywords

none

Package Sidebar

Install

npm i extreme-line-reader

Weekly Downloads

0

Version

0.1.0

License

ISC

Last publish

Collaborators

  • nherment