{"name":"datastore-level","version":"9.0.4","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"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./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":"docs","release":"patch"},{"type":"test","release":"patch"},{"type":"deps","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":"Documentation"},{"type":"deps","section":"Dependencies"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"scripts":{"clean":"aegir clean","lint":"aegir lint","build":"aegir build","release":"aegir release","test":"aegir test","test:node":"aegir test -t node --cov","test:chrome":"aegir test -t browser --cov","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","dep-check":"aegir dep-check"},"dependencies":{"abstract-level":"^1.0.3","datastore-core":"^8.0.1","interface-datastore":"^7.0.0","it-filter":"^2.0.0","it-map":"^2.0.0","it-sort":"^2.0.0","it-take":"^2.0.0","level":"^8.0.0"},"devDependencies":{"@ipld/dag-cbor":"^8.0.0","@types/rimraf":"^3.0.2","aegir":"^37.5.1","interface-datastore-tests":"^3.0.0","ipfs-utils":"^9.0.4","level-mem":"^6.0.1","memory-level":"^1.0.0","multiformats":"^10.0.2","rimraf":"^3.0.2"},"gitHead":"17ceec7955fdbadf649bd48cc5a417fc3cab8f10","_id":"datastore-level@9.0.4","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-HKf2tVVWywdidI+94z0B5NLx4J94wTLCT1tYXXxJ58MK/Y5rdX8WVRp9XmZaODS70uxpNC8/UrvWr0iTBZwkUA==","shasum":"1e2534fef6aedda528dcb5ead7c1f4cbcbb46d3a","tarball":"http://registry-npm.ywwl.com/datastore-level/download/datastore-level-9.0.4.tgz","fileCount":7,"unpackedSize":131326,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkBwOvVFIAZ4U889Q1A20AoytFQKAQwW9uZAZMzMZKeAIhANeYhzBRI76hu/jHOblE89Xh69oxCiOsFIwp69YSjaI5"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZARnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCHw/9GuxJoqfLoub1ZGwncoKg53gM6czS65vc6vUFytEyxEBjx4ko\r\nbuiEFok9aSkKkUE0iMpBH5TD3kL0h9zzKKGvKu0akKN55BAEoN3asW/12x1K\r\n5cIgHZZfJkanwJ+qOamRGmg6+gurH4cXJgSHwNFwZ8dqS+grRNmzcud6TBUY\r\n8mnV5T4EoKfJwYOkKv4OTnvezzHU7b9ZhkgfD3xQVzCEq09siyr+Oaw7vi9T\r\nG4Wic7SjHgRllMiaVrhIPaBZMFtAq/2afHtOvwWwJNojjnpkVnWXBbS4/c+L\r\ncCptMTHSVDViYBG+dpvrBeb85aoY5GWcG5WwqLfzMoo7iGTa5R/JL10Vq4jj\r\nOnp0aY6+9ipOMcSAiTYU6bz3hZck80cMRzyjlhvADzYFMC8nMuWWNGgFk3zT\r\nb4h0N0veaT9rX8jjOcjV96gMxfVvv6n0UmiW6roEYHY/bCzhwCJoCUDw8ZKp\r\nE6sUhX0Iat9Sh9bNkntHEDtEQ2G5X2b8nlV1WigSacNkqZ5eh7na1hyhV92A\r\ntMEJtp+XPZrlr2xaWPWNBaoQ/uNOZ2YZTQczDtL/yS8p0G2n3WZgu5LHmT67\r\nOs1MqBcBUqYrlISK8Jup2Xo0bUxCRlSUBvs+N8t2K13+cQWTa+9tDzlS6z89\r\nZwgRZcFdQZ3IkW8SwnD1/jIZ5KPqyvdcIGk=\r\n=GdKI\r\n-----END PGP SIGNATURE-----\r\n","size":39368,"noattachment":false,"key":"/datastore-level/-/datastore-level-9.0.4.tgz"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"daviddias","email":"mail@daviddias.me"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/datastore-level_9.0.4_1667499111372_0.6165460559347138"},"_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":1667499111586,"_cnpm_publish_time":1667499111586,"dist-tags":{"latest":"13.0.1"}}