{"_id":"pull-stream-to-async-iterator","_rev":"4573607","name":"pull-stream-to-async-iterator","description":"Convert a pull stream to an async iterator","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"alanshaw","email":""}],"time":{"modified":"2026-04-10T15:35:24.000Z","created":"2018-09-07T16:32:11.158Z","1.0.2":"2019-07-05T08:06:20.109Z","1.0.1":"2018-11-18T21:16:41.641Z","1.0.0":"2018-09-07T16:32:11.158Z"},"users":{},"author":{"name":"Alan Shaw"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/pull-stream-to-async-iterator.git"},"versions":{"1.0.2":{"name":"pull-stream-to-async-iterator","version":"1.0.2","description":"Convert a pull stream to an async iterator","main":"index.js","scripts":{"test":"nyc --reporter=lcov --reporter=text ava"},"keywords":["pull","stream","async","iterator","await"],"author":{"name":"Alan Shaw"},"license":"MIT","dependencies":{"pull-stream":"^3.6.9"},"devDependencies":{"ava":"^2.1.0","nyc":"^14.1.1"},"ava":{"babel":false,"compileEnhancements":false},"repository":{"type":"git","url":"git+https://github.com/alanshaw/pull-stream-to-async-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/pull-stream-to-async-iterator/issues"},"homepage":"https://github.com/alanshaw/pull-stream-to-async-iterator#readme","gitHead":"34244a2b9cbab6f8c86b688bba76a97a21d095bc","_id":"pull-stream-to-async-iterator@1.0.2","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"dist":{"shasum":"5cc1a3a146ef6bbf01c17755647369b683b24986","size":2167,"noattachment":false,"key":"/pull-stream-to-async-iterator/-/pull-stream-to-async-iterator-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-stream-to-async-iterator/download/pull-stream-to-async-iterator-1.0.2.tgz"},"maintainers":[{"name":"alanshaw","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pull-stream-to-async-iterator_1.0.2_1562313979934_0.9993428151151484"},"_hasShrinkwrap":false,"publish_time":1562313980109,"_cnpm_publish_time":1562313980109,"_cnpmcore_publish_time":"2021-12-16T13:33:20.160Z"},"1.0.1":{"name":"pull-stream-to-async-iterator","version":"1.0.1","description":"Convert a pull stream to an async iterator","main":"index.js","scripts":{"test":"nyc --reporter=lcov --reporter=text ava"},"keywords":["pull","stream","async","iterator","await"],"author":{"name":"Alan Shaw"},"license":"MIT","dependencies":{"pull-stream":"^3.6.9"},"devDependencies":{"ava":"^1.0.0-beta.8","nyc":"^13.0.1"},"ava":{"babel":false,"compileEnhancements":false},"repository":{"type":"git","url":"git+https://github.com/alanshaw/pull-stream-to-async-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/pull-stream-to-async-iterator/issues"},"homepage":"https://github.com/alanshaw/pull-stream-to-async-iterator#readme","gitHead":"7c66299084b368bda192b60cec0791185917efc8","_id":"pull-stream-to-async-iterator@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"maintainers":[{"name":"alanshaw","email":""}],"dist":{"shasum":"bf9ff9a7b7d6851e964513143aec5a4572e8a6f4","size":2166,"noattachment":false,"key":"/pull-stream-to-async-iterator/-/pull-stream-to-async-iterator-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-stream-to-async-iterator/download/pull-stream-to-async-iterator-1.0.1.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pull-stream-to-async-iterator_1.0.1_1542575801516_0.6259891707358856"},"_hasShrinkwrap":false,"publish_time":1542575801641,"_cnpm_publish_time":1542575801641,"_cnpmcore_publish_time":"2021-12-16T13:33:20.371Z"},"1.0.0":{"name":"pull-stream-to-async-iterator","version":"1.0.0","description":"Convert a pull stream to an async iterator","main":"index.js","scripts":{"test":"nyc --reporter=lcov --reporter=text ava"},"keywords":["pull","stream","async","iterator","await"],"author":{"name":"Alan Shaw"},"license":"MIT","dependencies":{"pull-stream":"^3.6.9"},"devDependencies":{"ava":"^1.0.0-beta.8","nyc":"^13.0.1"},"ava":{"babel":false,"compileEnhancements":false},"gitHead":"84ea793c9f821d7349aa09f286700de7e278695c","_id":"pull-stream-to-async-iterator@1.0.0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"dist":{"shasum":"fb4d953700694831376bc1f91d22dba27542d3a8","size":2102,"noattachment":false,"key":"/pull-stream-to-async-iterator/-/pull-stream-to-async-iterator-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-stream-to-async-iterator/download/pull-stream-to-async-iterator-1.0.0.tgz"},"maintainers":[{"name":"alanshaw","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pull-stream-to-async-iterator_1.0.0_1536337931072_0.45493945415425907"},"_hasShrinkwrap":false,"publish_time":1536337931158,"_cnpm_publish_time":1536337931158,"_cnpmcore_publish_time":"2021-12-16T13:33:20.956Z"}},"readme":"# pull-stream-to-async-iterator\n\n[![Build Status](https://travis-ci.org/alanshaw/pull-stream-to-async-iterator.svg?branch=master)](https://travis-ci.org/alanshaw/pull-stream-to-async-iterator) [![dependencies Status](https://david-dm.org/alanshaw/pull-stream-to-async-iterator/status.svg)](https://david-dm.org/alanshaw/pull-stream-to-async-iterator)\n\n> Convert a pull stream to an async iterator\n\n## Install\n\n```sh\nnpm install pull-stream-to-async-iterator\n```\n\n## Usage\n\n```js\nconst toIterator = require('pull-stream-to-async-iterator')\n\nconst source = pull(\n  pull.values([1, 2, 3, 4, 5]),\n  pull.asyncMap((value, cb) => setTimeout(() => cb(null, value)))\n)\nconst iterator = toIterator(source)\n\nfor await (const value of iterator) {\n  console.log(value)\n}\n```\n\n## API\n\n### `toIterator(source)`\n\nConvert a `source` pull stream into an async iterator. Returns an async iterator that can be used in a `for`/`await`/`of` loop.\n\n## Contribute\n\nFeel free to dive in! [Open an issue](https://github.com/alanshaw/pull-stream-to-async-iterator/issues/new) or submit PRs.\n\n## License\n\n[MIT](LICENSE) © Alan Shaw\n","_attachments":{},"homepage":"https://github.com/alanshaw/pull-stream-to-async-iterator#readme","bugs":{"url":"https://github.com/alanshaw/pull-stream-to-async-iterator/issues"},"license":"MIT"}