{"name":"datastore-level","version":"7.0.1","description":"Datastore implementation with level(up|down) backend","leadMaintainer":"Pedro Teixeira <pedro@protocol.ai>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"scripts":{"clean":"rimraf dist types","prepare":"aegir build --no-bundle && cp -R types dist","lint":"aegir ts -p check && aegir lint","build":"aegir build","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","release-major":"aegir release --type major --target node","pretest":"aegir build --esm-tests","test":"aegir test","dep-check":"aegir dep-check -i rimraf"},"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":"^6.0.5","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":"^6.0.5","@types/rimraf":"^3.0.2","aegir":"^35.0.3","assert":"^2.0.0","buffer":"^6.0.3","interface-datastore-tests":"^2.0.3","ipfs-utils":"^8.1.6","level-mem":"^5.0.1","multiformats":"^9.2.0","rimraf":"^3.0.0","util":"^0.12.3"},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"contributors":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"David Dias","email":"daviddias.p@gmail.com"},{"name":"Jacob Heun","email":"jacobheun@gmail.com"},{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Teixeira","email":"i@pgte.me"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Hugo Dias","email":"hugomrdias@gmail.com"},{"name":"Carson Farmer","email":"carson.farmer@gmail.com"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ","email":"victorbjelkholm@gmail.com"},{"name":"Bryan Stenson","email":"bryan.stenson@gmail.com"},{"name":"Jan Klosinski","email":"vanjan@protonmail.com"},{"name":"Michael Burns","email":"5170+mburns@users.noreply.github.com"},{"name":"Richard Schneider","email":"makaretu@gmail.com"},{"name":"Rod Vagg","email":"rod@vagg.org"}],"browser":{".":"./cjs/src/index.js"},"_id":"datastore-level@7.0.1","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"integrity":"sha512-UCLOwKloaLYrcWVewSCOqVWEHUxz1PijsWHrI0dPZd3kODSWLSpW5CYylkWKPTX+JM7S1wENbiaz3i1188JXig==","shasum":"723f9a77024e4e5f13aa84ed97a2d024e63e70c9","tarball":"http://registry-npm.ywwl.com/datastore-level/download/datastore-level-7.0.1.tgz","fileCount":12,"unpackedSize":197342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOdtBCRA9TVsSAnZWagAAsLsQAIKBm6TU1+kFS5HpjSrd\n5hqXD776hit9fOE8aT7FEF3ePH3aD0qNbySJIkPgECU5liEGQD5ZjFEL1LrV\nvgHalzmT26RklF9F7lL+92tVnUHBRCWczRbf/Rsh3bhBzPIBR/iifcD/P4FB\nuwM9ZRVLunRTe79oefStlIWVuH1sWPClSTGJXRmKLIL2fRk6r2ZZsVhEW322\nEXEUh997rL+E79/Dx9jOlG0RWO2n+YdgYE3nLxYkY0x/fSRieB3t56u5zOCt\n9+gm+QnHcBa/3Mh18UxqCdGnhdevLRqHg8jzU5BzG5ey1kJR2GTufTkMvkbg\nx2l92fzCGgO3klzxhYNinfoqoR/6DEPX9RxYGApScNTZRumEtDgqYvsXFZN3\na9i3YRZ1zRSg5xxFu711V1DoOW9WU3WuFcUjNAvN+L6DGQzx/t59uvkPMogW\nMPVj/41bTyNq4oSd8fJEs6eIkmWcgopX42yVFJfwfTQWUjVLNGUztIEwrH/6\n/u05jzz3UGjZ/a6k/TaS4xTmjVmr5O5gccfZ7j7YtyId/NLnAp3C9VVdMv+h\nFAws+XxRcmqMOj4iiKxkw+VpnxFUCNH18IMnEvjPOTQi0n6OduQrQs6Fjc+w\nnWdrMKNzgs+ti4w7ryqvBBMQz5T1uk+042HdYdCBJ1aeqvidVsEySNNMtvRI\nGgQs\r\n=pHO0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHO/uWCGie1evU+4qkxsVQ/tS/HG3Jb7HMtD004na2VxAiEAnOR/rYaG0QBT6Fr87O134xoPN16wqt+GEKFgnDwvI0k="}],"size":58027,"noattachment":false,"key":"/datastore-level/-/datastore-level-7.0.1.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_7.0.1_1631181633308_0.3175685320821431"},"_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":1631181633573,"_cnpm_publish_time":1631181633573,"dist-tags":{"latest":"13.0.1"}}