{"name":"datastore-core","version":"0.5.0","description":"Wrapper implmentation for interface-datastore","main":"src/index.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 codecov","docs":"aegir docs"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-datastore-core.git"},"keywords":["interface","key-value","ipfs","datastore"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-datastore-core/issues"},"homepage":"https://github.com/ipfs/js-datastore-core#readme","devDependencies":{"aegir":"^15.2.0","chai":"^4.1.2","dirty-chai":"^2.0.1","flow-bin":"~0.81.0"},"dependencies":{"async":"^2.6.1","interface-datastore":"~0.5.0","left-pad":"^1.3.0","pull-many":"^1.0.8","pull-stream":"^3.6.9"},"engines":{"node":">=6.0.0","npm":">=3.0.0"},"contributors":[{"name":"David Dias","email":"daviddias.p@gmail.com"},{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"Jacob Heun","email":"jacobheun@gmail.com"},{"name":"Richard Schneider","email":"makaretu@gmail.com"},{"name":"Victor Bjelkholm","email":"victorbjelkholm@gmail.com"}],"gitHead":"bb86bfa1193df3093d07ee2b2405f203ed84e986","_id":"datastore-core@0.5.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"daviddias","email":"mail@daviddias.me"},"dist":{"integrity":"sha512-H15EZOXLZXJRXTKQ2EQ6lms93fYXsFUgTWYjtJfsGyhs8MAEfjzoFM1HpP4l1/TiWSz2weslyl57M/q2U65sgw==","shasum":"1dc746b7c8987c95b9e4b4d4af24e97d76ca0ae9","tarball":"http://registry-npm.ywwl.com/datastore-core/download/datastore-core-0.5.0.tgz","fileCount":41,"unpackedSize":140734,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbopeDCRA9TVsSAnZWagAA3WYQAJtfs/jyzYDfgYrE20IG\ndCGA5PsqJUoBd7t/w9pAoDeWCDIhTJcO8MXqia42KNXVVQwNLKY3oaUDd8wN\n1S10dGzGQCVMxw2BJf+cAtqUCqlMPNr3JXsM0e1kkBlHTvI2mAtAtD5UhOhZ\nnZytWaJVpxEUm5QEceiqxuqdUl3RTEFb9CimSlcKikA1fmBRpesmOyMEz3kr\nNKH8etIuL/GUGeeTmQ5vXIi0PBYPxxQzCsVQQsAiRuwLZAtMxKxlCe4wfuOZ\n94golb8s5KhiKtHPbQunOYCzKpq/RCmWeGimBaC7lH9WCja7IFLgL8cXcMFF\nrNRPWNzEh1nAW3orFcp7WiB3ui4BgUkHOvvFXjnPfy/GjrnxvbPYyijyI+zE\nM0YSOqH2WZMrEQYZdAOsp8gasWYZ1Gg83K5mWdkmc1/3u4vbBR+g7sks6PpI\nVo4dzWTDwan/M0N8MmKYiaium+5YDeS+aqJs9tkHB6z4Le14mPcvAb/kVASK\nx7u4EBINz/WtsD04YuBITTMdbj6XoSdNcH66AAfMLyuE/6kmbNwCO/RwdpLs\nYk/EKOYsvMIBeaC+wMn9IO6sjYikPrp9s5lYjj9Y1DvlGuBVipkt2FfK2wJv\nIW6JWVgYMwkCYPdbGNeGLhDQg1QlfJGF/NFX40ij7W11vk6Yy+5sYYTTMlHz\ns2G2\r\n=IYX/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2Gnh4ZLmXbBz32pzvHZycunfCmGGFHipN2+upuUyukAiEA3dgSSDyyJD+p7QSSxLIlXNno+9AzId/PzPNtRfcnZoA="}],"size":23576,"noattachment":false,"key":"/datastore-core/-/datastore-core-0.5.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-core_0.5.0_1537382275399_0.8697090893594603"},"_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":1537382275526,"_cnpm_publish_time":1537382275526,"dist-tags":{"latest":"12.0.1"}}