a node.js streams plugin for bacon.js
npm install --save holonomy/bacon.nodestream
var fs = require('fs');
var split = require('split');
var Bacon = require('bacon.nodestream');
var nodeStream = fs.createReadStream(
__dirname + '/test/file.txt',
{ encoding: 'utf8' }
)
.pipe(split());
Bacon.fromNodeStream(nodeStream)
.onValue(function (line) {
// do something for each line
console.log(line);
});
npm i && npm test