Create a co generator stream from a node stream.
var co = require('co');
var fs = require('fs');
var fromStream = require('co-from-stream');
co(function*(){
var read = fromStream(fs.createReadStream('index.js'));
var data;
while (data = yield read()) console.log(data.toString());
})();
Create a co generator stream from stream
.
$ npm install co-from-stream
MIT