|
hace 5 años | |
---|---|---|
.. | ||
.npmignore | hace 5 años | |
History.md | hace 5 años | |
Makefile | hace 5 años | |
Readme.md | hace 5 años | |
example.js | hace 5 años | |
index.js | hace 5 años | |
package.json | hace 5 años | |
test.js | hace 5 años |
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