{"name":"datastore-level","version":"0.11.0","description":"Datastore implementation with level(up|down) backend","leadMaintainer":"Pedro Teixeira <pedro@protocol.ai>","main":"src/index.js","browser":{"leveldown":"level-js"},"scripts":{"lint":"aegir lint","build":"aegir build","test":"aegir test","flow":"flow","test:node":"aegir test --target node","test:browser":"aegir test --target browser","release":"aegir release --docs","release-minor":"aegir release --type minor --docs","release-major":"aegir release --type major --docs","coverage":"aegir coverage","coverage-publish":"aegir coverage --provider coveralls","docs":"aegir docs"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-datastore-level.git"},"keywords":["interface","key-value","ipfs","datastore","leveldb","levelup","leveldown"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-datastore-level/issues"},"homepage":"https://github.com/ipfs/js-datastore-level#readme","dependencies":{"datastore-core":"~0.6.0","encoding-down":"^6.0.2","interface-datastore":"~0.6.0","level-js":"github:timkuijsten/level.js#idbunwrapper","leveldown":"^5.0.0","levelup":"^4.0.1","pull-stream":"^3.6.9"},"devDependencies":{"aegir":"^15.3.1","async":"^2.6.1","chai":"^4.2.0","cids":"~0.5.5","dirty-chai":"^2.0.1","flow-bin":"~0.81.0","memdown":"^1.4.1","rimraf":"^2.6.2"},"contributors":[{"name":"David Dias","email":"daviddias.p@gmail.com"},{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"Jacob Heun","email":"jacobheun@gmail.com"},{"name":"Pedro Teixeira","email":"i@pgte.me"},{"name":"Richard Schneider","email":"makaretu@gmail.com"},{"name":"Rod Vagg","email":"rod@vagg.org"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Victor Bjelkholm","email":"victorbjelkholm@gmail.com"}],"gitHead":"3f29514e50bd22a8dff47b5662dd2971b9dbf2d9","_id":"datastore-level@0.11.0","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"pgte","email":"i@pgte.me"},"dist":{"integrity":"sha512-kbxtHSI37EFpqy/u91VqZdzoFZMq11eRS7x9ZOtXDMToYJspyG7G8GXvq4NIB9+41+BZGIzNQuXL1M4SNoWtaA==","shasum":"802cb1dec4ebb4e0525e052d695e26fc4b69af9c","tarball":"http://registry-npm.ywwl.com/datastore-level/download/datastore-level-0.11.0.tgz","fileCount":57,"unpackedSize":184619,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcxqMoCRA9TVsSAnZWagAAp2IP/RSSIDwLhhvVVP4WZIMc\nP11PYeFeHuW0YQ98PHJMwYNYN+a8YY2pU0EBlUfRDFuiZjGrxoTdZKIkuC3a\nx+cyIkjGKYoy8n8l0fXg2Uy9crbfohDXwBJwuZ+lT10CRtxtI6MaIB/9qR1N\nlNW8hAHQ9HEn+osLtnpAzUEw36CwRX41oBrbvyM6EXcfG3TCKt8S9jyp3Ph/\nSqnR4wbhvJmR/132ygyExlzqv0Mc6n6XCMt3GA6QPFWzs81ZsqzPvAlXW7MJ\nP1bDj4DJyAeyiKfqLPIZf0TGEcmSZivoNCiWGz9BStdREXY0IxDO2VruVEES\nH95Hq5sCk6Y8/AkQub9RoqIXP1Wo+wG92LPcucSw468sXbJhJe/Ns5g0Gq1l\nymRn/wrn1z08ghAD7tEkqGu/L783NZfWoyg4WACHmgUfD6IVfTaeLbTyxaoZ\nQ5GlTq9L9G98j/k38VjpAqxkBpmaJTJkHMimAl4GR/2Rb74ixrh7SCkZstnL\noDr0J+yeOhQbHjVyHDUvChkaNQ4MVdQXDj05gUxPOjeXvLNvpFLZhegvzaBO\nqqkNZuUd770FZ8TZpf35v6N8dQSkKckKq7mr5tqka50uFwZkyVroMS0DUD/0\nSvT6rqK9tErFqXEfUIt8QXM+7/RzKlALiKq1iHBimIBDO2DNPEqq5KyQS7kC\nZqy9\r\n=LKn6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBwmTKRjUnmP12zN+Gvm9COZBMwK/X2eJz2i0gTY57KgIgd9aRudtPjUS7Q8DN4ADJnheAYUKEu0y+9uj8tu0tOwc="}],"size":26371,"noattachment":false,"key":"/datastore-level/-/datastore-level-0.11.0.tgz"},"maintainers":[{"name":"daviddias","email":"daviddias.p@gmail.com"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/datastore-level_0.11.0_1556521768302_0.9998357857559745"},"_hasShrinkwrap":false,"readme":"# datastore-level\n\n[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)\n[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-stores.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-stores)\n[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-stores/js-test-and-release.yml?branch=main\\&style=flat-square)](https://github.com/ipfs/js-stores/actions/workflows/js-test-and-release.yml?query=branch%3Amain)\n\n> Datastore implementation with level(up|down) backend\n\n# About\n\n<!--\n\n!IMPORTANT!\n\nEverything in this README between \"# About\" and \"# Install\" is automatically\ngenerated and will be overwritten the next time the doc generator is run.\n\nTo make changes to this section, please update the @packageDocumentation section\nof src/index.js or src/index.ts\n\nTo experiment with formatting, please run \"npm run docs\" from the root of this\nrepo and examine the changes made.\n\n-->\n\nA Datastore implementation that uses a flavour of [Level](https://leveljs.org/) as a backend.\n\nThis module is targetted at Node.js. It is possible to use it in a browser but you should probably use IDBDatastore instead.\n\n## Example\n\n```js\nimport { LevelDatastore } from 'datastore-level'\n\n// Default using level as backend for node or the browser\nconst store = new LevelDatastore('path/to/store')\n\n// another leveldown compliant backend like memory-level\nconst memStore = new LevelDatastore(\n  new MemoryLevel({\n    keyEncoding: 'utf8',\n    valueEncoding: 'view'\n  })\n)\n```\n\n## Browser Shimming Leveldown\n\n`LevelStore` uses the `level` module to automatically use `level` if a modern bundler is used which can detect bundle targets based on the `pkg.browser` property in your `package.json`.\n\nIf you are using a bundler that does not support `pkg.browser`, you will need to handle the shimming yourself, as was the case with versions of `LevelStore` 0.7.0 and earlier.\n\n## Database names\n\n`level-js@3` changed the database prefix from `IDBWrapper-` to `level-js-`, so please specify the old prefix if you wish to continue using databases created using `datastore-level` prior to `v0.12.0`.  E.g.\n\n```javascript\nimport leveljs from 'level-js'\nimport browserStore = new LevelDatastore(\n  new Level('my/db/name', {\n    prefix: 'IDBWrapper-'\n  })\n})\n```\n\nMore information: [https://github.com/Level/level-js/blob/master/UPGRADING.md#new-database-prefix](https://github.com/Level/level-js/blob/99831913e905d19e5f6dee56d512b7264fbed7bd/UPGRADING.md#new-database-prefix)\n\n# Install\n\n```console\n$ npm i datastore-level\n```\n\n## Browser `<script>` tag\n\nLoading this module through a script tag will make it's exports available as `DatastoreLevel` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/datastore-level/dist/index.min.js\"></script>\n```\n\n# API Docs\n\n- <https://ipfs.github.io/js-stores/modules/datastore_level.html>\n\n# License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n# Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-stores/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","publish_time":1556521768414,"_cnpm_publish_time":1556521768414,"dist-tags":{"latest":"13.0.1"}}