{"name":"deferred-leveldown","version":"5.2.0","description":"For handling delayed-open on LevelDOWN compatible libraries","license":"MIT","main":"deferred-leveldown.js","scripts":{"test":"standard && hallmark && nyc node 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":"~6.1.0","inherits":"^2.0.3"},"devDependencies":{"coveralls":"^3.0.2","dependency-check":"^3.3.0","hallmark":"^2.0.0","level-community":"^3.0.0","nyc":"^14.0.0","standard":"^14.0.0","tape":"^4.10.0"},"hallmark":{"community":"level-community"},"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":">=6"},"gitHead":"2e45a797281e52196b455895c6505a1fa9dcc3f0","bugs":{"url":"https://github.com/Level/deferred-leveldown/issues"},"_id":"deferred-leveldown@5.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"maintainers":[{"email":"ralphtheninja@riseup.net","name":"ralphtheninja"},{"email":"r@va.gg","name":"rvagg"},{"email":"dev@vincentweevers.nl","name":"vweevers"}],"dist":{"integrity":"sha512-E1s224a+nv7nEZQL/s+q4ARzBhsfo3KiEjK3qdvDAvMfWE68GnGsMRYKanoZgYqq+LNgyRMYPzBgEmAXjM2i5g==","shasum":"d25564429f9a92019564e6e3c48cd3628ef1b00d","tarball":"http://registry-npm.ywwl.com/deferred-leveldown/download/deferred-leveldown-5.2.0.tgz","fileCount":10,"unpackedSize":32830,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdcqlnCRA9TVsSAnZWagAAPaAP/jlNd4M4BTujDtdcBt8Z\nDuP1Bo0/jrqRFqMkjQdrY+8k9mCKoD2VaTPKu1RRif2WGw9NFz6nxqz704wO\n3NlmI7xVooE58l0bS/canYHmVTVp/UpzcVNU3OCk6sx/9SiTTMul62P5u9Cz\nfu5o7NuDYUJOCxZ5HEAg0NMcPAsPA1W4pchu25GfImk+YJ8Oi8FZIdlpU7wi\ni4MQ8A8wJvw7btCvExRysQoC1AEhGJYDG0wms73OklVIdYfUMm0zJ+DxueiC\nPZYPvkMHCRZEsQhDtgwAeaw4zqeUxyHe0F6C2Um8n3/9PUvSfBK+EQ9nxNd3\nUPAsOjcJ3WC8UiAlIDGx+VUu+tq3nYfXufnXSR/n5MsCTsB3t4fjfPaP81Td\nJW8ruzqukU9yex0F8NlqO2P0UQY6ty380zFI7CkaFhDHHxdGjmdFcL8HPuVZ\ni65kTJ0eHgzs2wBnIztwCH3xpyZ+QFhKGNhngmjCXmYyEX+VX0JdYh4dHcp2\nVklwPLxhOR0RwP8WPvd6pYkkSOSx8a7bGxLj20z/VLgB5lFMegzauitYIhCY\n2SZH/smV9ssjqbvlXRLErqiosfOInRzKMq7wRU9rHCxcNvYNlZKA7lkvdaoy\n7h27XRFcqO6Or2a/6JBBUooIbNIcXXRx0TczbNgZ3hBY7a3ezFlO+lzxGJIv\n9nxK\r\n=SgGV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAu59mCFkOabWdjJMvhEMg+cMe5z1RTheU7ElyAyccvAIgZVIJUMic1mqgkJ05SOu4BnaWhxVAO12vNvjynzRwAVg="}],"size":7827,"noattachment":false,"key":"/deferred-leveldown/-/deferred-leveldown-5.2.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deferred-leveldown_5.2.0_1567795558426_0.386631688354361"},"_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":1567795558568,"deprecated":"Superseded by abstract-level (https://github.com/Level/community#faq)","_cnpm_publish_time":1567795558568,"dist-tags":{"latest":"7.0.0"}}