{"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,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/co-from-stream/-/co-from-stream-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"anonymous","email":"julian@juliangruber.com"},"maintainers":[{"name":"anonymous","email":"julian@juliangruber.com"}],"directories":{},"publish_time":1391937657928,"_cnpm_publish_time":1391937657928,"_hasShrinkwrap":false,"contributors":[]}},"dist-tags":{"latest":"0.0.0"},"name":"co-from-stream","time":{"modified":"2023-08-04T15:02:12.580Z","created":"2022-01-26T16:16:19.953Z","0.0.0":"2014-02-09T09:20:57.928Z"},"readme":"# 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","users":{}}