{"name":"level-concat-iterator","version":"2.0.1","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","coverage":"nyc report --reporter=text-lcov | coveralls","hallmark":"hallmark --fix","dependency-check":"dependency-check . test.js","prepublishOnly":"npm run dependency-check"},"devDependencies":{"coveralls":"^3.0.2","dependency-check":"^3.3.0","hallmark":"^0.1.0","level-community":"^3.0.0","nyc":"^13.3.0","standard":"^12.0.1","tape":"^4.9.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":">=6"},"gitHead":"992f4fff58bfb1a63645f319834e6191510296b9","bugs":{"url":"https://github.com/Level/concat-iterator/issues"},"_id":"level-concat-iterator@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_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-OTKKOqeav2QWcERMJR7IS9CUo1sHnke2C0gkSmcR7QuEtFNLLzHQAvnMw8ykvEcv0Qtkg0p7FOwP1v9e5Smdcw==","shasum":"1d1009cf108340252cb38c51f9727311193e6263","tarball":"http://registry-npm.ywwl.com/level-concat-iterator/download/level-concat-iterator-2.0.1.tgz","fileCount":10,"unpackedSize":11046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcocquCRA9TVsSAnZWagAAfhUP/ilnDORbwjQw1nenFBk7\nwtuolAyD+vDHrVTsjjFbPDGboNdwQcmiw7I0xfFjOQQ07WbNEDfy+TJk7K7K\nTGzU3DBTOOr0xtdHqWnyP5crGdpWA6DhzIKE0EUUWvV0vHgj04Fe9M2DW8jW\nYqirvs3YVyPqkV9LvUtFH565bfufxCFSAsL5cvDP3K1D0IKvWGWuz1kvC3v2\n7V7oIGikvWFVJCc6Tco9XWZk9zC5rNSdbPv5HnagjTzp1Kg5OvtdS9VtSzB5\nqaFqDlE+bUePCprTRTPWRcLmfE6ke/6HKXundKIQ4IGNvkGq/zZorBqXAa91\nuN4lRof6SZtDKwOdKCqAy1zJ450fzYMxxGzs4gZJOvuaC89OfKPwfisdTSVB\n1xb8mY7yFFP/iwiHQj+hoyMogWyjQCtolhN9UvXKHAGOxd3KUYYqSHECIQGl\n8/4CC+XCzwWRfrYAc2HreZIxJT70wNJ1I23gfzF1OyjCitF73Cddg1g0tzyc\nCKfGcy6zK4KM9EHiuggoCNfugW6riWRtqHUHzNCs+3E2Q7jcCaMbzPqyqlGr\n+e35tLuH3wHAhSxDH68AkHGTjZ2etf/Ah3waURUShXMn2W2TbzIAxDLmqyD6\nOUBj31chE3B7GHfGHbXhxDxYbljrPjzNNz4Qz1ioZsMwuBgkq3fZkEvVnbyT\nn7hk\r\n=JHqa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8RfaTJXjy/xzX2vL48X3bdj0PxACLPZCOCcaps6bKDAIgC80mcvc7V0i+nkB/3mEQe1RdY5FB6HeShguncHGtpG0="}],"size":3821,"noattachment":false,"key":"/level-concat-iterator/-/level-concat-iterator-2.0.1.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/level-concat-iterator_2.0.1_1554107053966_0.9736306585304513"},"_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":1554107054082,"deprecated":"Superseded by abstract-level (https://github.com/Level/community#faq)","_cnpm_publish_time":1554107054082,"dist-tags":{"latest":"3.1.0"}}