{"name":"level-iterator-stream","version":"3.0.1","description":"Turn a leveldown iterator into a readable stream","scripts":{"test":"standard && node test.js"},"repository":{"type":"git","url":"git+https://github.com/Level/iterator-stream.git"},"dependencies":{"inherits":"^2.0.1","readable-stream":"^2.3.6","xtend":"^4.0.0"},"devDependencies":{"leveldown":"^4.0.0","standard":"^11.0.0","tape":"^4.4.0","through2":"^2.0.0"},"engines":{"node":">=6"},"license":"MIT","gitHead":"25cf356f1288953d9c8ce31a4bb4f954656f1fef","bugs":{"url":"https://github.com/Level/iterator-stream/issues"},"homepage":"https://github.com/Level/iterator-stream#readme","_id":"level-iterator-stream@3.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"maintainers":[{"email":"julian@juliangruber.com","name":"juliangruber"},{"email":"ralphtheninja@riseup.net","name":"ralphtheninja"},{"email":"dev@vincentweevers.nl","name":"vweevers"}],"dist":{"integrity":"sha512-nEIQvxEED9yRThxvOrq8Aqziy4EGzrxSZK+QzEFAVuJvQ8glfyZ96GB6BoI4sBbLfjMXm2w4vu3Tkcm9obcY0g==","shasum":"2c98a4f8820d87cdacab3132506815419077c730","tarball":"http://registry-npm.ywwl.com/level-iterator-stream/download/level-iterator-stream-3.0.1.tgz","fileCount":9,"unpackedSize":17699,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbyMK2CRA9TVsSAnZWagAAsSEQAJISNl22jd5eeuLO1fWM\naA/yPgUd5Of/0KiE9GFYyHLS4N5c2jrMMg0doeUmsytBk2AmN2NNEQH5PMRl\nzjvJ5ww2/uQ5/MBBtrX7tH8bPt5lLsorMbnX3KHtzQ5YTdcXvvVpPeoRpkbF\nx/lOjGzQBHyLSBsXtcRNgGZfK6YI4oVjYxKsQetWwWPEjuIs3LRYKSlOLuqc\nX5SJL1FOMgC518SMGfAJ5Gd5CUxhy4gXmTKVdvKR/IRGsc1vVR8iauzWFvlI\nLRHkopmI1BGHC+86rSP2U0uYHIuBE9m3AAStgrLmU/mDSP5IubFS7yx0W9OO\nHuEdiMJWnM1vfO/5jcQWdpsL85Kk0/4kRwqFnxSmdEehztVVIWVEsB0TS3AK\n0o3KrjMT0Yu31NxOnCFV4bttg3guBenQ3KweQu+UE1QAOLpsK/BYLVSa+MOv\nUjgRy4WZVA0pOAiXToHYkInQoANK04BAVzk/5WrQj9Rxu1k0vFcqm+zO3/2A\n5Rkia5ulfN+TsYqI4EVisIk5TO0xOziGQZYa3I1Gtg1PNIj2aTN6zzH8GKuY\nZrQUkxK9n6Vhpbf1ns4IQr44xmyP4xuT+SC+N3C4sJE6Dqsec2b38y4Jx0aj\nFg2egvQGFd4Piu6aLd0dZ4DBhZsMO3WyYyCMwRZnKl9MLZAu77Ea3y6knhqN\nyao2\r\n=Avn4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM1Y1hYQcYLYrlfieTO8aauBgYy3vop1IdJK2ZWSaeNAIhAIq0sdGVKpYMUeNQiY6LAmzfiWP0ZHjMnFuChkx6Jz8M"}],"size":5084,"noattachment":false,"key":"/level-iterator-stream/-/level-iterator-stream-3.0.1.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/level-iterator-stream_3.0.1_1539883685634_0.21013404762845966"},"_hasShrinkwrap":false,"readme":"# level-iterator-stream\n\n> Turn an [abstract-leveldown](https://github.com/Level/abstract-leveldown) iterator into a readable stream.\n\n[![level badge][level-badge]](https://github.com/Level/awesome)\n[![npm](https://img.shields.io/npm/v/level-iterator-stream.svg?label=&logo=npm)](https://www.npmjs.com/package/level-iterator-stream)\n[![Node version](https://img.shields.io/node/v/level-iterator-stream.svg)](https://www.npmjs.com/package/level-iterator-stream)\n[![Travis](https://img.shields.io/travis/com/Level/iterator-stream.svg?logo=travis&label=)](https://travis-ci.com/Level/iterator-stream)\n[![Coverage Status](https://coveralls.io/repos/github/Level/iterator-stream/badge.svg)](https://coveralls.io/github/Level/iterator-stream)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![npm](https://img.shields.io/npm/dm/level-iterator-stream.svg?label=dl)](https://www.npmjs.com/package/level-iterator-stream)\n[![Backers on Open Collective](https://opencollective.com/level/backers/badge.svg?color=orange)](#backers)\n[![Sponsors on Open Collective](https://opencollective.com/level/sponsors/badge.svg?color=orange)](#sponsors)\n\n## Usage\n\n**If you are upgrading:** please see [UPGRADING.md](UPGRADING.md).\n\n```js\nconst iteratorStream = require('level-iterator-stream')\nconst leveldown = require('leveldown')\n\nconst db = leveldown(__dirname + '/db')\n\ndb.open(function (err) {\n  if (err) throw err\n\n  const stream = iteratorStream(db.iterator())\n  stream.on('data', function (kv) {\n    console.log('%s -> %s', kv.key, kv.value)\n  })\n})\n```\n\n## Install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install level-iterator-stream\n```\n\n## API\n\n### `stream = iteratorStream(iterator[, options])`\n\nCreate a readable stream from `iterator`. The `options` are passed down to the `require('readable-stream').Readable` constructor, with `objectMode` forced to `true`. Set `options.keys` or `options.values` to `false` to only get keys or values. Otherwise receive `{ key, value }` objects.\n\nUpon stream end or `.destroy()` the `iterator` will be closed after which a `close` event is emitted on the stream.\n\n## Contributing\n\n[`Level/iterator-stream`](https://github.com/Level/iterator-stream) is an **OPEN Open Source Project**. This means that:\n\n> Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.\n\nSee the [Contribution Guide](https://github.com/Level/community/blob/master/CONTRIBUTING.md) for more details.\n\n## Donate\n\nTo sustain [`Level`](https://github.com/Level) and its activities, become a backer or sponsor on [Open Collective](https://opencollective.com/level). Your logo or avatar will be displayed on our 28+ [GitHub repositories](https://github.com/Level) and [npm](https://www.npmjs.com/) packages. 💖\n\n### Backers\n\n[![Open Collective backers](https://opencollective.com/level/backers.svg?width=890)](https://opencollective.com/level)\n\n### Sponsors\n\n[![Open Collective sponsors](https://opencollective.com/level/sponsors.svg?width=890)](https://opencollective.com/level)\n\n## License\n\n[MIT](LICENSE.md) © 2012-present [Contributors](CONTRIBUTORS.md).\n\n[level-badge]: https://leveljs.org/img/badge.svg\n","publish_time":1539883701760,"_cnpm_publish_time":1539883701760,"dist-tags":{"latest":"5.0.0"}}