{"name":"level-concat-iterator","version":"3.0.0","description":"Concatenate items from an iterator into an array.","author":{"name":"Lars-Magnus Skog","email":"ralphtheninja@riseup.net"},"license":"MIT","main":"index.js","scripts":{"test":"standard && hallmark && nyc node test","test-browsers-local":"airtap --coverage test.js","coverage":"nyc report --reporter=text-lcov | coveralls","hallmark":"hallmark --fix","dependency-check":"dependency-check . test.js","prepublishOnly":"npm run dependency-check"},"devDependencies":{"airtap":"^4.0.3","airtap-playwright":"^1.0.1","coveralls":"^3.0.2","dependency-check":"^3.3.0","hallmark":"^3.1.0","level-community":"^3.0.0","nyc":"^15.1.0","standard":"^16.0.3","tape":"^5.0.1"},"hallmark":{"community":"level-community"},"repository":{"type":"git","url":"git+https://github.com/Level/concat-iterator.git"},"homepage":"https://github.com/Level/concat-iterator","keywords":["level","concatenate","iterator","array"],"engines":{"node":">=10"},"gitHead":"cabaf64cfb2f0d1a0b089f40ed9ee389f6c0dd0a","bugs":{"url":"https://github.com/Level/concat-iterator/issues"},"_id":"level-concat-iterator@3.0.0","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"maintainers":[{"name":"vweevers","email":"dev@vincentweevers.nl"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"}],"dist":{"integrity":"sha512-UHGiIdj+uiFQorOrURRvJF3Ei0uHc89ciM/aRi0qsWDV2f0HXypeXUPhJKL6DsONgSR76Pc0AI4sKYEYYRn2Dg==","shasum":"416ddaf0c2ed834f006aa3124ee68906eb4769d4","tarball":"http://registry-npm.ywwl.com/level-concat-iterator/download/level-concat-iterator-3.0.0.tgz","fileCount":6,"unpackedSize":8143,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgb2g6CRA9TVsSAnZWagAAwscP/2v1TqbbUllRJzkKSfNA\nmIjWFhwwEmJTEBmG/lEkZr9OQcHCcCkNcb57Y6dP50fkceuvUBXS6A2OFInr\nz5QA+2dsfsjeQ8dDRYbfHh/gBCe8neHn/AZolGW2TMrU7Takkm3sExGaV3D7\njZRSdpm/++5EuN6VV5Ina0vZ7b26IatcjapmKfwBvAZS0H8tccVxcft7SOR+\ngkIi8eiKCA+tskwCu92J5NI81N/UNS1ylJ/Hv4DSmxcnQfEFTdjGykvMs5D8\nOYFTIvFBWdbKpzWnTHvzHqPjx10CD2x2MPXSUtOJKI5NPjtvuNl2dsJDrpOE\nVdUs6y/ooGMeAeEtRfYAkQ9wM+ueoCzHwqyAyjCKNWw89FeQLrCmAZL0XcV/\n2eLZ+O1bDE+ZvVd1IYdvlQMXHqmI/cw6v0GUmO68EYu7xRvPz9uRODQp+Ubz\nWJTBC3arp1wL2R0Vb2lwuYm3GIsEdpzz7L6WCChoPMQsYpgGapTOsPbrn4e8\nj20h1iykKfL/xeJCOLAEXi6aH1bLYq/j/6L3Yf8xfyo2+YFqEROI36BFC7Nj\nxJlgDxq8Jcp6sgpLR5rVnRUWTzAP4M9BNWWaKov/SPIfSbxI0KhOMLvEFgmD\n0o5/VJKyW3YOfkEq0C2+BhtskT2YPB+42b3FrJ5MgzEdZCkkrhZAFnoAgxot\n148c\r\n=xokZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/sAIZMjx/noD2+7Jj5OuEZ8k6EgZHBwzmvzCmrSF7YAiEA8eL2SrGnViWM7L2z5vtIhd6nsC7C8ETzijnq5QSaAOw="}],"size":3278,"noattachment":false,"key":"/level-concat-iterator/-/level-concat-iterator-3.0.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/level-concat-iterator_3.0.0_1617913914082_0.5116805720207052"},"_hasShrinkwrap":false,"readme":"# level-concat-iterator\n\n**Concatenate entries from an iterator into an array.**\n\n[![level badge][level-badge]](https://github.com/Level/awesome)\n[![npm](https://img.shields.io/npm/v/level-concat-iterator.svg)](https://www.npmjs.com/package/level-concat-iterator)\n[![Node version](https://img.shields.io/node/v/level-concat-iterator.svg)](https://www.npmjs.com/package/level-concat-iterator)\n[![Test](https://img.shields.io/github/workflow/status/Level/concat-iterator/Test?label=test)](https://github.com/Level/concat-iterator/actions/workflows/test.yml)\n[![Coverage](https://img.shields.io/codecov/c/github/Level/supports?label=&logo=codecov&logoColor=fff)](https://codecov.io/gh/Level/supports)\n[![Standard](https://img.shields.io/badge/standard-informational?logo=javascript&logoColor=fff)](https://standardjs.com)\n[![Common Changelog](https://common-changelog.org/badge.svg)](https://common-changelog.org)\n[![Donate](https://img.shields.io/badge/donate-orange?logo=open-collective&logoColor=fff)](https://opencollective.com/level)\n\n## Usage\n\n```js\nconst concat = require('level-concat-iterator')\nconst level = require('level')\n\nconst db = level('./db')\n\ndb.put('foo', 'bar', function (err) {\n  if (err) throw err\n\n  concat(db.iterator(), function (err, entries) {\n    if (err) throw err\n\n    // [{ key: 'foo', value: 'bar' }]\n    console.log(entries)\n  })\n})\n```\n\nWith promises:\n\n```js\nawait db.put('foo', 'bar')\nconst entries = await concat(db.iterator())\n```\n\n_If you are upgrading: please see [`UPGRADING.md`](UPGRADING.md)._\n\n## API\n\n### `concat(iterator[, callback])`\n\nTakes an `abstract-leveldown` compatible `iterator` as first parameter and calls the `callback` with an array of entries, where each entry is an object in the form `{ key, value }`. Calls the `callback` with an error if `iterator.next()` or `iterator.end()` errors. If no callback is provided, a promise is returned.\n\n## Contributing\n\n[`Level/concat-iterator`](https://github.com/Level/concat-iterator) 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\nSupport us with a monthly donation on [Open Collective](https://opencollective.com/level) and help us continue our work.\n\n## License\n\n[MIT](LICENSE)\n\n[level-badge]: https://leveljs.org/img/badge.svg\n","publish_time":1617913914258,"deprecated":"Superseded by abstract-level (https://github.com/Level/community#faq)","_cnpm_publish_time":1617913914258,"dist-tags":{"latest":"3.1.0"}}