input-stream-parser
v3.1.2
Published
Easier parsing of input streams with a delimiter
Downloads
3
Readme
Input process parser
Makes it easier to digest an input stream with a delimiter
Getting Started
npm install --save input-stream-parser
Usage
var parser = require('input-stream-parser');
var file = fs.createReadStream('somefile.txt');
parser(file, '\n', function (line, cb) {
// Will be called on every line of the file (one after the other)
cb();
}, function () {
// This will run when finished.
})
Contributions welcome!
Credits
This library was initially made by the awesome team of engineers at Diamond.
If you haven't already, make sure you install Diamond!