line-by-line-promise
is a NodeJS module that reads large text files line by line, without buffering the files into memory. It is built upon line-by-line but returns Promise for every line read, enabling generator based flow-control.
Installation:
npm install line-by-line-promise
Usage
var LineReader = ;var file = 'big_file.txt'; // Example using co: https://github.com/tj/co; // Example using bluebird: https://github.com/petkaantonov/bluebirdPromise;
License
MIT License. See license text in LICENSE