node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

lazy-lines

lazy line-by-line stream reader

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