node package manager

lazy-lines

lazy line-by-line stream reader

LazyLines = require('lazy-lines');
LazyLines(stream)
.forEach(function (line) {
    // process line
});