{"name":"datastore-level","version":"8.0.0","description":"Datastore implementation with level(up|down) backend","author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-datastore-level#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-datastore-level.git"},"bugs":{"url":"https://github.com/ipfs/js-datastore-level/issues"},"keywords":["datastore","interface","ipfs","key-value","leveldb","leveldown","levelup"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"breaking":true,"release":"major"},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"chore","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Trivial Changes"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog",["@semantic-release/npm",{"pkgRoot":"dist"}],"@semantic-release/github","@semantic-release/git"]},"scripts":{"clean":"rimraf dist types","prepare":"aegir build --no-bundle && cp -R types dist","lint":"aegir ts -p check && aegir lint","build":"aegir build --esm-tests","release":"semantic-release","test":"aegir test","test:node":"aegir test -t node","test:chrome":"aegir test -t browser","test:chrome-webworker":"aegir test -t webworker","test:firefox":"aegir test -t browser -- --browser firefox","test:firefox-webworker":"aegir test -t webworker -- --browser firefox","test:electron-main":"aegir test -t electron-main -f dist/cjs/node-test/*js","test:electron-renderer":"aegir test -t electron-renderer -f dist/cjs/node-test/*js","dep-check":"aegir dep-check -i rimraf"},"dependencies":{"datastore-core":"^7.0.0","interface-datastore":"^6.0.2","it-filter":"^1.0.2","it-map":"^1.0.5","it-sort":"^1.0.0","it-take":"^1.0.1","level":"^7.0.0"},"devDependencies":{"@ipld/dag-cbor":"^7.0.0","@types/rimraf":"^3.0.2","aegir":"^36.1.3","assert":"^2.0.0","buffer":"^6.0.3","interface-datastore-tests":"^2.0.3","ipfs-utils":"^9.0.4","level-mem":"^6.0.1","multiformats":"^9.2.0","rimraf":"^3.0.0","util":"^0.12.3"},"browser":{".":"./cjs/src/index.js"},"gitHead":"38f44058dd6be858e757a1c90b8edb31590ec0bc","_id":"datastore-level@8.0.0","_nodeVersion":"16.13.2","_npmVersion":"7.24.2","dist":{"integrity":"sha512-206Nwq6vSV35phfcGTHZM5FXpa/4RmkbU3unGlhxwm13bn9VFNcyYGN5htG9xlHVXW+1uefcd64VZpH6LWGVqg==","shasum":"b9e1ae3093b65ac72de88b2fa1f0a229270f9509","tarball":"http://registry-npm.ywwl.com/datastore-level/download/datastore-level-8.0.0.tgz","fileCount":26,"unpackedSize":226318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6A91CRA9TVsSAnZWagAAvAAQAKR9BfnqVwRXuU2vAyjo\nSm1HCHErTMLYip51UnDQ8YbWYz0HZMYGKOFfwPFRbtsTlyuqg3qBtM8YH77F\ntCpEyrGXj/yEsXFarK/yailiI8V9A6U4TlWAKFbIg4GWmSNK5DUyKl1+MsY5\n7qSQnhZGN+fV8Wqd7rZgbJ5ADnGd8hKI/UlOXJLFV2hzKsobJQ1zmaoDmfMI\nXQb3CMqxOOCb+Ks8NFsqQLN2Skkqv7CQI3gl6Uk5G25Xy2YUy9stMaO8qvn8\neoNmwfSJDPdBDrTSF+MIJgDVK9U2xTocLVstxOUCaXOoVgFgMyo1HrF1hO+q\na/x+lmPV66eps2TVc9gmEzyaRc16jjhLJTo+oGBio5TAdtpfN2a2rH9FTan9\n0n/g1dT0Qi2hScTdYoiIowymm8yN3bfGpgTuRJaG1kLu3DFaYlpDsT+H5//6\noAeScS/zsMjiubilb96PdU+5HgqDLvjR35ErdOlTEjh4szdoaTeaqjyG/+cl\n+TeqcbF7vBBhSKsvZ88mp1nI9eIZWqshurIPxVc4zrqtjHCaLk8PIqCVp/Z1\nKtrSmouYp1Aa+uGDz1a78dX8lM85orPjc4v+KHcL9t1mymZqcgfsvdQrwp8u\nptvNaNk6bu8dcLqCyqJ4kpKfNBdt2cV5+T8CAfKMJo0Ai1jm6Qj3Jez/3qK3\nEGrK\r\n=VjHU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGktu/Mq+Rfw2HKbOx5LuZxHM3QRoS0LcDvKlbPj0tR4AiEA2y565HsI9DuG70CWjaNr2eh6oHj6Wr4KqYJIgzGumgM="}],"size":60755,"noattachment":false,"key":"/datastore-level/-/datastore-level-8.0.0.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"daviddias","email":"mail@daviddias.me"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},{"name":"achingbrain","email":"alex@achingbrain.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/datastore-level_8.0.0_1642598261615_0.7964488970931516"},"_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":1642598261800,"_cnpm_publish_time":1642598261800,"dist-tags":{"latest":"13.0.1"}}