|
5 年 前 | |
---|---|---|
.. | ||
.npmignore | 5 年 前 | |
History.md | 5 年 前 | |
Makefile | 5 年 前 | |
Readme.md | 5 年 前 | |
example.js | 5 年 前 | |
index.js | 5 年 前 | |
package.json | 5 年 前 | |
test.js | 5 年 前 |
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