readline

Simple streaming readline module.

Read a file line by line.

Npm linebyline

npm install linebyline
npm install .
npm test
 

Simple streaming readline module for NodeJS. Reads a file and buffer new lines emitting a line event for each line.

  var readline = require('linebyline'),
      rl = readline('./somefile.txt');
  rl.on('line', function(linelineCountbyteCount) {
    // do something with the line of text 
  })
  .on('error', function(e) {
    // something went wrong 
  });

BSD © Craig Brookes