{"name":"unstorage","version":"1.7.0","license":"MIT","_id":"unstorage@1.7.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":"1b3c66aa495f52bc248d63b9b2f75446b0435544","tarball":"http://registry-npm.ywwl.com/unstorage/download/unstorage-1.7.0.tgz","fileCount":77,"integrity":"sha512-f78UtR4HyUGWuET35iNPdKMvCh9YPQpC7WvkGpP6XiLlolT/9wjyAICYN9AMD/tlB8ZdOqWQHZn+j7mXcTSO4w==","signatures":[{"sig":"MEUCIHs+oLz8yf6o9ankV4Hna00bRhqCs0V/CQGBEtn4mxQVAiEAga2Q8YpeCj5JWXUziRbycUGv8bsyBkoZVzWWd4V33d4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":169914,"size":35201,"noattachment":false,"key":"/unstorage/-/unstorage-1.7.0.tgz"},"main":"./dist/index.cjs","_from":"file:unstorage-1.7.0.tgz","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":"./drivers/*.d.ts","import":"./drivers/*.mjs","require":"./drivers/*.cjs"}},"scripts":{"dev":"vitest","demo":"vite demo","lint":"eslint --ext .ts . && prettier -c src test demo docs/content","test":"pnpm lint && pnpm test:types && vitest run --coverage","build":"unbuild","release":"pnpm test && changelogen --release && git push --follow-tags && pnpm publish","lint:fix":"eslint --ext .ts . --fix && prettier -w src test demo docs/content","unstorage":"pnpm jiti src/cli","test:types":"tsc --noEmit --skipLibCheck"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"_resolved":"/private/var/folders/s0/k4lcb4b50bj9r4fch4_1h_l40000gn/T/5cac41eebb969cedd17a6d3f82f1cfc4/unstorage-1.7.0.tgz","_integrity":"sha512-f78UtR4HyUGWuET35iNPdKMvCh9YPQpC7WvkGpP6XiLlolT/9wjyAICYN9AMD/tlB8ZdOqWQHZn+j7mXcTSO4w==","repository":{"url":"git+https://github.com/unjs/unstorage.git","type":"git"},"_npmVersion":"9.5.1","description":"Universal Storage Layer","directories":{},"sideEffects":false,"_nodeVersion":"18.16.0","dependencies":{"h3":"^1.7.0","mri":"^1.2.0","ufo":"^1.1.2","destr":"^2.0.0","ofetch":"^1.1.1","ioredis":"^5.3.2","listhen":"^1.0.4","anymatch":"^3.1.3","chokidar":"^3.5.3","lru-cache":"^10.0.0","node-fetch-native":"^1.2.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.6.3","devDependencies":{"msw":"^1.2.2","vue":"^3.3.4","jiti":"^1.18.2","vite":"^4.3.9","jsdom":"^22.1.0","eslint":"^8.43.0","vitest":"^0.32.2","azurite":"^3.24.0","mongodb":"^5.6.0","unbuild":"^1.2.1","prettier":"^2.8.8","@types/mri":"^1.1.1","@vercel/kv":"^0.2.1","typescript":"^5.1.3","@types/node":"^20.3.1","changelogen":"^0.5.3","@types/jsdom":"^21.1.1","ioredis-mock":"^8.7.0","@azure/cosmos":"^3.17.3","monaco-editor":"^0.39.0","@upstash/redis":"^1.21.0","@azure/identity":"^3.2.3","@vue/compiler-sfc":"^3.3.4","@azure/data-tables":"^13.2.2","@vitejs/plugin-vue":"^4.2.3","eslint-config-unjs":"^0.2.1","@azure/storage-blob":"^12.14.0","@types/ioredis-mock":"^8.2.2","@vitest/coverage-v8":"^0.32.2","@planetscale/database":"^1.7.0","mongodb-memory-server":"^8.13.0","@azure/keyvault-secrets":"^4.7.0","types-cloudflare-worker":"^1.2.0","@azure/app-configuration":"^1.4.1","@cloudflare/workers-types":"^4.20230518.0"},"peerDependencies":{"@vercel/kv":"^0.2.1","@azure/cosmos":"^3.17.3","@upstash/redis":"^1.20.6","@azure/identity":"^3.2.2","@azure/data-tables":"^13.2.2","@azure/storage-blob":"^12.14.0","@planetscale/database":"^1.7.0","@azure/keyvault-secrets":"^4.7.0","@azure/app-configuration":"^1.4.1"},"peerDependenciesMeta":{"@vercel/kv":{"optional":true},"@azure/cosmos":{"optional":true},"@upstash/redis":{"optional":true},"@azure/identity":{"optional":true},"@azure/data-tables":{"optional":true},"@azure/storage-blob":{"optional":true},"@planetscale/database":{"optional":true},"@azure/keyvault-secrets":{"optional":true},"@azure/app-configuration":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/unstorage_1.7.0_1687358111707_0.22064521597976472","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":1687358111915,"_cnpm_publish_time":1687358111915,"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"}}