{"name":"deferred-leveldown","version":"6.0.0","description":"A mock abstract-leveldown implementation that queues operations while a real abstract-leveldown instance is being opened","license":"MIT","main":"deferred-leveldown.js","scripts":{"test":"standard && hallmark && nyc node test.js","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"},"dependencies":{"abstract-leveldown":"^7.0.0","inherits":"^2.0.3"},"devDependencies":{"airtap":"^4.0.3","airtap-playwright":"^1.0.1","coveralls":"^3.0.2","dependency-check":"^3.3.0","hallmark":"^3.1.0","memdown":"^6.0.0","nyc":"^15.1.0","reachdown":"^1.0.0","standard":"^16.0.3","tape":"^5.0.1"},"repository":{"type":"git","url":"git+https://github.com/Level/deferred-leveldown.git"},"homepage":"https://github.com/Level/deferred-leveldown","keywords":["leveldb","level","levelup","leveldown"],"engines":{"node":">=10"},"gitHead":"0c1db02365f1361a47bdb28201a1e37e54948938","bugs":{"url":"https://github.com/Level/deferred-leveldown/issues"},"_id":"deferred-leveldown@6.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":"rvagg","email":"r@va.gg"},{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"}],"dist":{"integrity":"sha512-F6CLAZzNeURojlH4MCigZr54tNz+xDSi06YXsDr5uLSKeF3JKnvnQWTqd+RETh2hbWTJR3qDzGicQOWS5ZQ1BQ==","shasum":"364dc436682eccbd4a25a5fd5585614770d0d3d6","tarball":"http://registry-npm.ywwl.com/deferred-leveldown/download/deferred-leveldown-6.0.0.tgz","fileCount":7,"unpackedSize":22521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeqLYCRA9TVsSAnZWagAAALwP/RdELAxV9J8MWeUNKwop\nMMXMvfidiEPoNGZuVstmcoohPc4/alWwo9okeMB47kZiAs+gi90DCOGTnQVq\nFMRvAI1TI6H1k0WUdzglqJIubUeJpJc1/zaip6qdsGD1j2zhx9LzC+ryE5jm\nT/sRcJoblw66cZo7JGdpWhxZWXH87AAWwPbOWKmm00MVjl9/8AhDnEF+QlXJ\nUl6sxMlPi/JyRssEsGuEgumu4gpX2kf8OBmlGthN/qp2Y+5TXmklEBdwsWHh\nzwMRL0+vMqNA2g+QQ9L+wBamrxclrgPYRJh6RBUud4h2SPvvc8qWqf2ISjfm\nRgIPHu0b6N5JEv7FOW6FpyBfEmHCWiB2HACUC5FIlnCYUtYlg5i3OIL2XzJq\nfY0RLTNm4Rc11On0dA4k2X08SBChEYVYFJimp4+4M8bYIPID+6JJpkzkUgc8\nI3VEaH3jXrXAoyZnAUrsKIEN6KoT7K0yDEkNp07laTLPTExV09KFlxB72Dcn\nmGriywST42GcFNDf3u8Vqdd0aYHjLZQhW8qEmZ17T9DakX8CFaFVMR2Gq19W\nO4ua3G00nA4A+UQgaQASjuCr41j4UTSPmbz6BkuRAVnjnzT5kUYAh3x5v23q\noCD/BFfRjSfb7hbuTG1qq75oFttWsyWKP1zAdkd0PW1dbUgx6DswETIXPsSV\nqGZD\r\n=x6JS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICpb43PMb1PxDeTphDP3wqoj7fs90/CXXrzxfJBvB57yAiEAymqgS1BDeG5cXorMQizMajpP1TxwBrsPxntIANCzD5o="}],"size":6217,"noattachment":false,"key":"/deferred-leveldown/-/deferred-leveldown-6.0.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deferred-leveldown_6.0.0_1618649815621_0.8419588670358849"},"_hasShrinkwrap":false,"readme":"# deferred-leveldown\n\n> A mock `abstract-leveldown` implementation that queues operations while a real `abstract-leveldown` instance is being opened.\n\n[![level badge][level-badge]](https://github.com/Level/awesome)\n[![npm](https://img.shields.io/npm/v/deferred-leveldown.svg)](https://www.npmjs.com/package/deferred-leveldown)\n[![Node version](https://img.shields.io/node/v/deferred-leveldown.svg)](https://www.npmjs.com/package/deferred-leveldown)\n[![Test](https://img.shields.io/github/workflow/status/Level/deferred-leveldown/Test?label=test)](https://github.com/Level/deferred-leveldown/actions/workflows/test.yml)\n[![Coverage](https://img.shields.io/codecov/c/github/Level/deferred-leveldown?label=&logo=codecov&logoColor=fff)](https://codecov.io/gh/Level/deferred-leveldown)\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_If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._\n\n`deferred-leveldown` implements the [`abstract-leveldown`](https://github.com/Level/abstract-leveldown) API so it can be used as a drop-in replacement where `leveldown` is needed.\n\n`put()`, `get()`, `getMany()`, `del()`, `batch()` and `clear()` operations are all queued and kept in memory until the `abstract-leveldown`-compatible object has been opened through `deferred-leveldown`'s `open()` method.\n\n`batch()` operations will all be replayed as the array form. Chained-batch operations are converted before being stored.\n\n```js\nconst deferred  = require('deferred-leveldown')\nconst leveldown = require('leveldown')\n\nconst db = deferred(leveldown('location'))\n\n// Must always call open() first\ndb.open(function (err) {\n  // ...\n})\n\n// But can operate before open() has finished\ndb.put('foo', 'bar', function (err) {\n  // ...\n})\n```\n\n## Contributing\n\n[`Level/deferred-leveldown`](https://github.com/Level/deferred-leveldown) 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":1618649815755,"deprecated":"Superseded by abstract-level (https://github.com/Level/community#faq)","_cnpm_publish_time":1618649815755,"dist-tags":{"latest":"7.0.0"}}