@sazze/liner
v1.0.1
Published
Stream that reads chunk data and outputs it line by line
Downloads
10
Readme
Usage
var Liner = require('sz-liner');
var fs = require('fs');
var source = fs.createReadStream('/tmp/someFile');
var liner = new Liner();
source.pipe(liner);
liner.on('data', function (line) {
// do something with the line
});
liner.on('end', function () {
// source file is complete
});
Install
npm install @sazze/liner
Tests
npm test