{"name":"datastore-core","version":"7.0.0","description":"Wrapper implementation for interface-datastore","author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-datastore-core#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-datastore-core.git"},"bugs":{"url":"https://github.com/ipfs/js-datastore-core/issues"},"keywords":["datastore","interface","ipfs","key-value"],"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"},"./base":{"browser":"./esm/src/base.js","require":"./cjs/src/base.js","import":"./esm/src/base.js"},"./errors":{"browser":"./esm/src/errors.js","require":"./cjs/src/errors.js","import":"./esm/src/errors.js"},"./keytransform":{"browser":"./esm/src/keytransform.js","require":"./cjs/src/keytransform.js","import":"./esm/src/keytransform.js"},"./memory":{"browser":"./esm/src/memory.js","require":"./cjs/src/memory.js","import":"./esm/src/memory.js"},"./mount":{"browser":"./esm/src/mount.js","require":"./cjs/src/mount.js","import":"./esm/src/mount.js"},"./namespace":{"browser":"./esm/src/namespace.js","require":"./cjs/src/namespace.js","import":"./esm/src/namespace.js"},"./shard":{"browser":"./esm/src/shard.js","require":"./cjs/src/shard.js","import":"./esm/src/shard.js"},"./sharding":{"browser":"./esm/src/sharding.js","require":"./cjs/src/sharding.js","import":"./esm/src/sharding.js"},"./tiered":{"browser":"./esm/src/tiered.js","require":"./cjs/src/tiered.js","import":"./esm/src/tiered.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":{"debug":"^4.1.1","err-code":"^3.0.1","interface-datastore":"^6.0.2","it-drain":"^1.0.4","it-filter":"^1.0.2","it-map":"^1.0.5","it-merge":"^1.0.1","it-pipe":"^1.1.0","it-pushable":"^1.4.2","it-take":"^1.0.1","uint8arrays":"^3.0.0"},"devDependencies":{"@types/debug":"^4.1.5","aegir":"^36.1.3","interface-datastore-tests":"^2.0.3","it-all":"^1.0.4","rimraf":"^3.0.2","util":"^0.12.4"},"browser":{".":"./cjs/src/index.js","./base":"./cjs/src/base.js","./errors":"./cjs/src/errors.js","./keytransform":"./cjs/src/keytransform.js","./memory":"./cjs/src/memory.js","./mount":"./cjs/src/mount.js","./namespace":"./cjs/src/namespace.js","./shard":"./cjs/src/shard.js","./sharding":"./cjs/src/sharding.js","./tiered":"./cjs/src/tiered.js"},"gitHead":"9435c15e8c8157c4eef532d64b2c50f983ec8a34","_id":"datastore-core@7.0.0","_nodeVersion":"16.13.2","_npmVersion":"7.24.2","dist":{"integrity":"sha512-FdudjeH+GHjbuU8X1mIKIv8uHAErF6qtjqWFJiVKOdITk6KdiSKis4Hsfu80RWDEFQ9l9s47XIVf5FMKTtoeWA==","shasum":"1dff18ea0504692e63ab818e6ac9e448cac0727d","tarball":"http://registry-npm.ywwl.com/datastore-core/download/datastore-core-7.0.0.tgz","fileCount":125,"unpackedSize":225106,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5//mCRA9TVsSAnZWagAACQwP+gOvRCGG/Wezkh/vl+NM\nq3PNki+saAZBmEJP7SbJaNjriMesbN0XnviXFeRGbgX+oYjk2Deg6HaXB4Dh\nPLoNNAwjX+816xg5ln14cuW4VCeUh2kziVqOI2jB5xOFKS3e2zurQJD09urU\n9n7//Bcn48eqVppk/hNutNeKF2AhpARtl5FD/TICUMGPSnS2dke9ijEL1O5T\nC2yarTl4jH3WrcwxthPWFm3yDdxUkdYisq3dq4HfJ1d96sKa1I2gQ4Ha5K9+\nOgB6vI5exJWdELjnrIKiVhBnydEtQcHN1vxb0j71v9JvxHz1RBwNac5zcRqe\nLSn4ZtF1j05gEKoATEdIvwOu+rggJQXUNP0wG3GT3lJhCdu5ZBmVnCSBS0/r\n2AhdiZL87yLu4xpOL7KuI0hEeZi+rJFgBMYqU3B2uWjVijQCE21R+UObrVef\nWK7V2DdHQOBuM36k/RoO3KorhGYw818Nt6TFhHWw8q4WBDIKM836B5EtCM++\n7VuqLisKULUQrXiNtI2gtJabk1fKLBgIrFBXJQvLPp9pbKuk4pg6xK2Y4KhF\nRSasN6l2H7DsucDpi06c0+QXbch6J/7ZnrDbd3k6jfZJkYm95JCFD/esHz1G\njXpYIZ1h2F3wJkAtkJj1uqNw60Hyd3mdHOshfwglgyRVYiD+NTFtVcW3qub/\n58Q6\r\n=vQN6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzyco561JzZEs9yza946TC6FkHTa/OznVMkLEsFlsRfQIhALkjhJqqU7okE1pd7WUKrv9UaRtKFlnvVglXeCRha042"}],"size":36035,"noattachment":false,"key":"/datastore-core/-/datastore-core-7.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-core_7.0.0_1642594278262_0.13328909416580736"},"_hasShrinkwrap":false,"readme":"# datastore-core\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> Wrapper implementation for interface-datastore\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\nVarious Datastore implementations are available.\n\n## Implementations\n\n- Mount: [`src/mount`](src/mount.ts)\n- Keytransform: [`src/keytransform`](src/keytransform.ts)\n- Sharding: [`src/sharding`](src/sharding.ts)\n- Tiered: [`src/tiered`](src/tirered.ts)\n- Namespace: [`src/namespace`](src/namespace.ts)\n- BlackHole: [`src/black-hole`](src/black-hole.ts)\n\n## Example - BaseDatastore\n\nAn base store is made available to make implementing your own datastore easier:\n\n```javascript\nimport { BaseDatastore } from 'datastore-core'\n\nclass MyDatastore extends BaseDatastore {\n  constructor () {\n    super()\n  }\n\n  async put (key, val) {\n    // your implementation here\n  }\n\n  async get (key) {\n    // your implementation here\n  }\n\n  // etc...\n}\n```\n\nSee the [MemoryDatastore](./src/memory.js) for an example of how it is used.\n\n## Example - Wrapping Stores\n\n```js\nimport { Key } from 'interface-datastore'\nimport {\n  MemoryStore,\n  MountStore\n} from 'datastore-core'\n\nconst store = new MountStore({prefix: new Key('/a'), datastore: new MemoryStore()})\n```\n\n## Example - BlackHoleDatastore\n\nA datastore that does not store any data.\n\n```js\nimport { BlackHoleDatastore } from 'datastore-core/black-hole'\n\nconst store = new BlackHoleDatastore()\n```\n\n# Install\n\n```console\n$ npm i datastore-core\n```\n\n## Browser `<script>` tag\n\nLoading this module through a script tag will make it's exports available as `DatastoreCore` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/datastore-core/dist/index.min.js\"></script>\n```\n\n# API Docs\n\n- <https://ipfs.github.io/js-stores/modules/datastore_core.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":1642594278392,"_cnpm_publish_time":1642594278392,"dist-tags":{"latest":"12.0.1"}}