{"name":"deferred-leveldown","description":"For handling delayed-open on LevelDOWN compatible libraries","version":"4.0.0","contributors":[{"name":"Rod Vagg","email":"r@va.gg","url":"https://github.com/rvagg"},{"name":"John Chesley","email":"john@chesl.es","url":"https://github.com/chesles/"},{"name":"Jake Verbaten","email":"raynos2@gmail.com","url":"https://github.com/raynos"},{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"https://github.com/dominictarr"},{"name":"Max Ogden","email":"max@maxogden.com","url":"https://github.com/maxogden"},{"name":"Lars-Magnus Skog","email":"ralphtheninja@riseup.net","url":"https://github.com/ralphtheninja"},{"name":"David Björklund","email":"david.bjorklund@gmail.com","url":"https://github.com/kesla"},{"name":"Julian Gruber","email":"julian@juliangruber.com","url":"https://github.com/juliangruber"},{"name":"Paolo Fragomeni","email":"paolo@async.ly","url":"https://github.com/hij1nx"},{"name":"Anton Whalley","email":"anton.whalley@nearform.com","url":"https://github.com/No9"},{"name":"Matteo Collina","email":"matteo.collina@gmail.com","url":"https://github.com/mcollina"},{"name":"Pedro Teixeira","email":"pedro.teixeira@gmail.com","url":"https://github.com/pgte"},{"name":"James Halliday","email":"mail@substack.net","url":"https://github.com/substack"}],"repository":{"type":"git","url":"git+https://github.com/Level/deferred-leveldown.git"},"homepage":"https://github.com/Level/deferred-leveldown","keywords":["leveldb","level","levelup","leveldown"],"main":"deferred-leveldown.js","dependencies":{"abstract-leveldown":"~4.0.0"},"devDependencies":{"standard":"^11.0.0","tape":"^4.7.0"},"scripts":{"test":"standard && node test.js"},"license":"MIT","engines":{"node":">=6"},"gitHead":"84b0332384dd8a8df40de54bae2e6c2bd7ea5fee","bugs":{"url":"https://github.com/Level/deferred-leveldown/issues"},"_id":"deferred-leveldown@4.0.0","_npmVersion":"6.0.0","_nodeVersion":"10.0.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"dist":{"integrity":"sha512-dF2nbK5efrr7eutZswrm/ep8q7TFQeLBKvXdQYF/7WtXZH+7N1JxptES3qhp+MJB1qMpibK48bfWyV2BvhSQrA==","shasum":"a49baeb778f0bd0a63cffe2e7b20ca8160726c80","tarball":"http://registry-npm.ywwl.com/deferred-leveldown/download/deferred-leveldown-4.0.0.tgz","fileCount":9,"unpackedSize":23520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+CozCRA9TVsSAnZWagAAOi4P/RMSqwgJawu0ffBqw7SR\nyDEapdeq3lkoEIq3pCXadS0ghyNXKAx/y/sb/zcPKNv1/Q94mxhaTDDLfdYp\ndXX4Vvs2f4tmOOeUsToPGz7OGf9WigeDF+xZdJ9dUkdKZXRhPf4AF4OQJmaz\nWKKyH52Rf0JxmDdr0ScipA+Pt2BTlaKoNnG54ZLuh5ESJtFP2FBJL+oMOoDb\nuv8o/x5WfA45F99XhL2pFTzUYb5yQ4QexIs7RxChJ/IVWKEf7R6ZlkFAqS9j\n7s63U7pUEFBKXlkbTRkaRJuktpQX4NVPJQCCZhYQgSmjb358zU5g7yDPOYtK\nzjinuwBdXx8COnrC8hDrBxxev8adGgL4NDiqtvX/40nCxUp8i4s7cZXjWIxF\nlKv3SCeHlU3cjy+y22I3nIGfONjHgJHqEz4GZqtnqi4VOdUZYQN3eGmqdxz1\ntGI8Emf+mrMlIg80Ski4dEXuAfj18neJU/bN+EHbCM6KQlUlL1scbkmOV+Fg\npXqCMhzoxD/+u6eGKEVlkdiQkTP91hZ3e+HYNeSvGIceXVfqkXH9Mx4taD2/\nmNZnpjvvun+uVl5mwREkPgLRXxEvDnabu1jOJ0cc3JBDVB0qiWNruhL82DWP\n0C9n3oKab0KjGvCZ3WZC+WegSJrIxxU/um9E4wmCPwRnCDb1BCXqaRInI94b\nwHYm\r\n=3sLm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpAUxCcJRShQLxmHi7q9dnmNVCHHsSQr3KvBHBOEVnUQIhAJOclgkLEl6aKmCnyvRhkzmPD9Dv8hNi8zYRwNwz7ilU"}],"size":6742,"noattachment":false,"key":"/deferred-leveldown/-/deferred-leveldown-4.0.0.tgz"},"maintainers":[{"email":"julian@juliangruber.com","name":"juliangruber"},{"email":"ralphtheninja@riseup.net","name":"ralphtheninja"},{"email":"r@va.gg","name":"rvagg"},{"email":"dev@vincentweevers.nl","name":"vweevers"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deferred-leveldown_4.0.0_1526213170834_0.003571317322361711"},"_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":1526213170909,"deprecated":"Superseded by abstract-level (https://github.com/Level/community#faq)","_cnpm_publish_time":1526213170909,"dist-tags":{"latest":"7.0.0"}}