Skip to content

holonomy/bacon.nodestream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bacon.nodestream

a node.js streams plugin for bacon.js

install

npm install --save holonomy/bacon.nodestream

usage

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);
});

test

npm i && npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published