node package manager

readlinestream

Read a file line by line

ReadLineStream

... is a Node.js module to read a file line by line.

npm install readlinestream

In your file:

var rls = require("readlinestream");
var stream = rls.createReadStream("eitel.txt");
stream.on("line", function(line) {
console.log("Line: " + line);
});