blergh
v1.0.3
Published
Line reader for streams
Downloads
3
Readme
Usage
const blergh = require('blergh');
let awesomeBuffer = new blergh();
awesomeBuffer.on('line',function(line){
console.log(line);
});
awesomeBuffer.read(`This is line 1
This is line 2
This is li`);
awesomeBuffer.read(`ne 3
This is line 4
This is line 5
Buffer will hold this line`);
awesomeBuffer.flush();
// this empties the buffer
// pass in 'true' if you want it to spew out the held line