file-linereader

Read File Line By Line

npm install file-linereader
8 downloads in the last month

file-linereader

异步按行读取文件 Asynchronous Read File Line By Line

var lineReader = require('file-linereader');

var flr = new lineReader.LineReadStream();
flr.on('line', function(line) {
    console.log(line)
})

lineReader.eachLine('file.txt', function(line) {
    console.log(line);
});
npm loves you