{"name":"unstorage","version":"1.0.0","license":"MIT","_id":"unstorage@1.0.0","maintainers":[{"name":"pi0","email":"pyapar@gmail.com"}],"homepage":"https://github.com/unjs/unstorage#readme","bugs":{"url":"https://github.com/unjs/unstorage/issues"},"dist":{"shasum":"d517bbad0a85e11d5dd12862f9fff8f845f0b2c4","tarball":"http://registry-npm.ywwl.com/unstorage/download/unstorage-1.0.0.tgz","fileCount":45,"integrity":"sha512-hsXAvUMXZjyLlkwwWtVB7bjXZuPvhxqmEw53a5loxqlzemWtYvQwcEfYvVBtC47sQPAuK3ktKzbbspusUmt1KA==","signatures":[{"sig":"MEYCIQCaVvEPrdSZ1NTWVPamljb+seQR69dibKO/oQ2XPurG1gIhALe/p8tszfeRoy3otBE+pqNhiUlxEaNOZlUKq+r0FXQ5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcvwbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnBw/+OFhPhnMijNp4PHUqfeW8ib+nXDe++X2vsDdP8yhfkqnNOyr4\r\nGjD80lyfswfyam3E6Zb3sKCSibyylaI+2b40z3zhI9VZj9DPOmuQUYkmdXmh\r\n1BEiFxiq2McF0VDzBgcUwIse9YMJKGzY2uJWM/OB6W4qNZ3MpWZzOxbWqiZv\r\nTSeKZZpUNCfRCOkw73aHfqOmu0ki3cBt1vLsLNx8wqRb9URB2L8sErfsq4su\r\nKYwOAQs4DPGJi+zpv2QaNswUhftIpSwBiIZjV0v6SZEYRUexVDGOBAzQZ6GJ\r\nc7KzzSwGK/M/SEypudB3azWg77DIYo2Ldbp36hDCRvEfn+nK4N8HJq/O8ImB\r\nUqZxDvuApmv6JbKbBEZGvDw9GtwdNzllNepanadrS6KedZErC19AOJ2+ldTg\r\n1Xrbis2lzMMu70xMSapBJNxpOsFqaOsDlmd5LmnaWhN46XDxQn5Q9prwa0nb\r\n4UzxBnjPsU6topX7nwa1R8UlZDsD3GbpOl1koASTku54y8XIq4tH2ExsqOxj\r\npA/k0OXOFc8qPOisAzuOMVR6MeiKjCFWx1wfX5O9YI0l/rSgMPRhdYxdpYFX\r\nHmUHMlL0TuaKNVjERrJr+QJZ/AZmzYZUfG+YY/4c0A7+hjDKujkMGb+pQI0y\r\nJ8o5ZmtgAv0cAUNczqO0r/Y06oi+ldSHJp8=\r\n=nQUP\r\n-----END PGP SIGNATURE-----\r\n","size":24668,"noattachment":false,"key":"/unstorage/-/unstorage-1.0.0.tgz"},"main":"./dist/index.cjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.mjs","require":"./dist/server.cjs"},"./drivers/*":{"types":"./dist/drivers/*.d.ts","import":"./dist/drivers/*.mjs","require":"./dist/drivers/*.cjs"}},"gitHead":"308e9c647c291e5e066e532430f98b96544e30f4","scripts":{"dev":"vitest","demo":"vite demo","lint":"eslint --ext .ts .","test":"pnpm lint && vitest run --coverage","build":"unbuild","start":"node server.js","doctoc":"doctoc README.md --notitle --maxlevel 3","prepack":"pnpm build","release":"pnpm test && changelogen --release && git push --follow-tags && pnpm publish","unstorage":"pnpm jiti src/cli"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"repository":{"url":"git+https://github.com/unjs/unstorage.git","type":"git"},"_npmVersion":"8.15.0","description":"Universal Storage Layer","directories":{},"sideEffects":false,"_nodeVersion":"16.17.0","dependencies":{"h3":"^0.8.6","ws":"^8.11.0","mri":"^1.2.0","ufo":"^1.0.0","destr":"^1.2.1","mkdir":"^0.0.2","ioredis":"^5.2.4","listhen":"^1.0.0","anymatch":"^3.1.2","chokidar":"^3.5.3","ohmyfetch":"^0.4.21"},"_hasShrinkwrap":false,"packageManager":"pnpm@7.16.0","devDependencies":{"c8":"^7.12.0","msw":"^0.48.2","vue":"^3.2.45","jiti":"^1.16.0","vite":"^3.2.3","jsdom":"^20.0.2","doctoc":"^2.2.1","eslint":"^8.27.0","vitest":"^0.25.2","unbuild":"^0.9.4","@types/ws":"^8.5.3","@types/mri":"^1.1.1","typescript":"^4.8.4","@types/node":"^18.11.9","changelogen":"^0.4.0","@types/jsdom":"^20.0.1","monaco-editor":"^0.34.1","@vue/compiler-sfc":"^3.2.45","@vitejs/plugin-vue":"^3.2.0","eslint-config-unjs":"^0.0.2","@vitest/coverage-c8":"^0.25.2","types-cloudflare-worker":"^1.2.0","@cloudflare/workers-types":"^3.18.0"},"_npmOperationalInternal":{"tmp":"tmp/unstorage_1.0.0_1668480027078_0.7537294463956847","host":"s3://npm-registry-packages"},"readme":"# 💾 Unstorage\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Codecov][codecov-src]][codecov-href]\n[![bundle][bundle-src]][bundle-href]\n[![License][license-src]][license-href]\n\n<!--[![Github Actions][github-actions-src]][github-actions-href]-->\n\nUnstorage provides an async Key-Value storage API with conventional features like multi driver mounting, watching and working with metadata, dozens of built-in drivers and a [tiny core](https://bundlephobia.com/package/unstorage).\n\n👉 [Documentation](https://unstorage.unjs.io)\n\n## Features\n\n- Designed for all environments: Browser, NodeJS, and Workers\n- Lots of Built-in drivers\n- Asynchronous API\n- Unix-style driver mounting to combine storages\n- Default [in-memory](https://unstorage.unjs.io/drivers/memory) storage\n- Tree-shakable utils and tiny core\n- Auto JSON value serialization and deserialization\n- Binary and raw value support\n- State [snapshots](https://unstorage.unjs.io/getting-started/utils#snapshots) and hydration\n- Storage watcher\n- HTTP Storage with [built-in server](https://unstorage.unjs.io/guide/http-server)\n\n## Usage\n\nInstall `unstorage` npm package:\n\n```sh\n# yarn\nyarn add unstorage\n\n# npm\nnpm install unstorage\n\n# pnpm\npnpm add unstorage\n```\n\n```js\nimport { createStorage } from \"unstorage\";\n\nconst storage = createStorage(/* opts */);\n\nawait storage.getItem(\"foo:bar\"); // or storage.getItem('/foo/bar')\n```\n\n👉 Check out the [the documentation](https://unstorage.unjs.io) for usage information.\n\n## Nightly release channel\n\nYou can use the nightly release channel to try the latest changes in the `main` branch via [`unstorage-nightly`](https://www.npmjs.com/package/unstorage-nightly).\n\nIf directly using `unstorage` in your project:\n\n```json\n{\n  \"devDependencies\": {\n    \"unstorage\": \"npm:unstorage-nightly\"\n  }\n}\n```\n\nIf using `unstorage` via another tool in your project:\n\n```json\n{\n  \"resolutions\": {\n    \"unstorage\": \"npm:unstorage-nightly\"\n  }\n}\n```\n\n## Contribution\n\n- Clone repository\n- Install dependencies with `pnpm install`\n- Use `pnpm dev` to start vitest watcher verifying changes\n- Use `pnpm test` before pushing to ensure all tests and lint checks passing\n\n## License\n\n[MIT](./LICENSE)\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/unstorage?style=flat&colorA=18181B&colorB=F0DB4F\n[npm-version-href]: https://npmjs.com/package/unstorage\n[npm-downloads-src]: https://img.shields.io/npm/dm/unstorage?style=flat&colorA=18181B&colorB=F0DB4F\n[npm-downloads-href]: https://npmjs.com/package/unstorage\n[github-actions-src]: https://img.shields.io/github/workflow/status/unjs/unstorage/ci/main?style=flat&colorA=18181B&colorB=F0DB4F\n[github-actions-href]: https://github.com/unjs/unstorage/actions?query=workflow%3Aci\n[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/unstorage/main?style=flat&colorA=18181B&colorB=F0DB4F\n[codecov-href]: https://codecov.io/gh/unjs/unstorage\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/unstorage?style=flat&colorA=18181B&colorB=F0DB4F\n[bundle-href]: https://bundlephobia.com/result?p=unstorage\n[license-src]: https://img.shields.io/github/license/unjs/unstorage.svg?style=flat&colorA=18181B&colorB=F0DB4F\n[license-href]: https://github.com/unjs/unstorage/blob/main/LICENSE\n","publish_time":1668480027296,"_cnpm_publish_time":1668480027296,"dist-tags":{"2x":"0.2.10","3x":"0.3.4","4x":"0.4.2","alpha":"2.0.0-alpha.11","latest":"2.0.0-beta.0"}}