{"_id":"co-from-stream","_rev":"222796","name":"co-from-stream","description":"Create a co generator stream from a node stream","dist-tags":{"latest":"0.0.0"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"time":{"modified":"2021-06-03T15:41:00.000Z","created":"2014-02-09T09:20:57.928Z","0.0.0":"2014-02-09T09:20:57.928Z"},"users":{"tunnckocore":true,"xiechao06":true},"repository":{"type":"git","url":"git://github.com/juliangruber/co-from-stream"},"versions":{"0.0.0":{"name":"co-from-stream","version":"0.0.0","description":"Create a co generator stream from a node stream","repository":{"type":"git","url":"git://github.com/juliangruber/co-from-stream"},"license":"MIT","dependencies":{"co-read":"0.0.1"},"devDependencies":{"co":"~3.0.2","mocha":"~1.17.1"},"scripts":{"test":"make test"},"bugs":{"url":"https://github.com/juliangruber/co-from-stream/issues"},"homepage":"https://github.com/juliangruber/co-from-stream","_id":"co-from-stream@0.0.0","dist":{"shasum":"1a5cd8ced77263946094fa39f2499a63297bcaf9","size":1179,"noattachment":false,"key":"/co-from-stream/-/co-from-stream-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/co-from-stream/download/co-from-stream-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"directories":{},"publish_time":1391937657928,"_cnpm_publish_time":1391937657928,"_hasShrinkwrap":false}},"readme":"\n# co-from-stream\n\n  Create a [co generator stream](https://github.com/juliangruber/co-stream)\n  from a [node stream](http://nodejs.org/api/stream.html).\n\n## Usage\n\n```js\nvar co = require('co');\nvar fs = require('fs');\nvar fromStream = require('co-from-stream');\n\nco(function*(){\n  var read = fromStream(fs.createReadStream('index.js'));\n  \n  var data;\n  while (data = yield read()) console.log(data.toString());\n})();\n```\n\n## API\n\n### fromStream(stream)\n\n  Create a co generator stream from `stream`.\n\n## Installation\n\n```bash\n$ npm install co-from-stream\n```\n\n## License\n\n  MIT\n","_attachments":{},"homepage":"https://github.com/juliangruber/co-from-stream","bugs":{"url":"https://github.com/juliangruber/co-from-stream/issues"},"license":"MIT"}