{"name":"unstorage","version":"1.3.0","license":"MIT","_id":"unstorage@1.3.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":"2ee893ed4666998423bf8983e154a5e4914a1b3e","tarball":"http://registry-npm.ywwl.com/unstorage/download/unstorage-1.3.0.tgz","fileCount":71,"integrity":"sha512-2ux0UDXBTR7VzJHZFBiLM1b5sB9XEXMlqoG8cd6lkBIxrD8jhj5tZGkRXTD2RgNXp+ndCgSOs9oUmEV5VpR8WQ==","signatures":[{"sig":"MEQCIGfKRwm61QR1sPyRRhZV9pQ7IsOmRLnQm9bsIlAunVmMAiBwgQXglvpJn2P+aQ2j++3CKBNnUkE29Oy+PzrOfiUcQQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":152069,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBzmfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoirBAAncrECEvnSm/T0DkuO98/hM+CupWFRrIBFiXwgV5+/upjveRx\r\nnjmasoFxAPObJK7+fTTOVK4QTCG0q1xr7xZK7a98qbF6jFzb+4S9vitVjwmj\r\nDUx+pQDxkCRO/Vx9f0ENfobuctgOz/y6x6pTLG8g5UFDdiTbvRt5VFc3QroG\r\n3h7Oek8fU+TsH+4yHvY1jb7vt9ASPngWdbvK2HTJef6ZhQbR9yDtjBF+dZpb\r\ncQaHGcWhJKahCxOKx4q2G3bHUQKOvp9ozYwd7Ez4nsWCuvSfrenEKCWYlDf9\r\n4/Oxj+67JrR5IQPDlgSPihn0Ep5LJ6DS0/rlfiUlCPAJewIspwj3Qi6/zgiA\r\nmbVeQQvShCbr4C2vnVmWMyTNBunTWxzIN9+nYUI9bHdTC1TjTipMofRih87N\r\nN7Qs+KaasWOCghK9I+q+IaJEuGWiRMxzWEi/jxtd8Np/gjSHIYe7wtbmmoha\r\nAnedS1YoXZvF/cVB5/x7mZucpgGsblA7OI1D1xFfRp2a7iEZDcIqj8Sjsfrk\r\nAsG9CEt5rmDaBSmqL8Y9jgkgrmyLgdiyBFkbBJiLJMokSpxOfdu9g78K8vsg\r\nZfGVqgW+QNsWXhuo4Z2S3FsbfSnnFw2Go8xhhAxflEP/d4KsOCLFj/pqqoR7\r\nY3oJuFuvpwa4yZJoPZlAQchovisu8sd2BuE=\r\n=Zy/k\r\n-----END PGP SIGNATURE-----\r\n","size":32612,"noattachment":false,"key":"/unstorage/-/unstorage-1.3.0.tgz"},"main":"./dist/index.cjs","_from":"file:unstorage-1.3.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 && 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"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"_resolved":"/private/var/folders/s0/k4lcb4b50bj9r4fch4_1h_l40000gn/T/73837f14635b675ce28957b09a887e70/unstorage-1.3.0.tgz","_integrity":"sha512-2ux0UDXBTR7VzJHZFBiLM1b5sB9XEXMlqoG8cd6lkBIxrD8jhj5tZGkRXTD2RgNXp+ndCgSOs9oUmEV5VpR8WQ==","repository":{"url":"git+https://github.com/unjs/unstorage.git","type":"git"},"_npmVersion":"8.19.3","description":"Universal Storage Layer","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"h3":"^1.5.0","mri":"^1.2.0","ufo":"^1.1.1","destr":"^1.2.2","ofetch":"^1.0.1","ioredis":"^5.3.1","listhen":"^1.0.3","anymatch":"^3.1.3","chokidar":"^3.5.3","lru-cache":"^7.18.3","@azure/cosmos":"^3.17.3","@azure/identity":"^3.1.3","node-fetch-native":"^1.0.2","@azure/data-tables":"^13.2.1","@azure/storage-blob":"^12.13.0","@planetscale/database":"^1.6.0","@azure/keyvault-secrets":"^4.6.0","@azure/app-configuration":"^1.3.1"},"_hasShrinkwrap":false,"packageManager":"pnpm@7.29.0","devDependencies":{"c8":"^7.13.0","msw":"^1.1.0","vue":"^3.2.47","jiti":"^1.17.2","vite":"^4.1.4","jsdom":"^21.1.0","eslint":"^8.35.0","vitest":"^0.29.2","azurite":"^3.22.0","mongodb":"^5.1.0","unbuild":"^1.1.2","prettier":"^2.8.4","@types/mri":"^1.1.1","typescript":"^4.9.5","@types/node":"^18.14.6","changelogen":"^0.5.1","@types/jsdom":"^21.1.0","ioredis-mock":"^8.2.6","@azure/cosmos":"^3.17.3","monaco-editor":"^0.36.1","@azure/identity":"^3.1.3","@vue/compiler-sfc":"^3.2.47","@azure/data-tables":"^13.2.1","@vitejs/plugin-vue":"^4.0.0","eslint-config-unjs":"^0.1.0","@azure/storage-blob":"^12.13.0","@types/ioredis-mock":"^8","@vitest/coverage-c8":"^0.29.2","@planetscale/database":"^1.6.0","mongodb-memory-server":"^8.11.5","@azure/keyvault-secrets":"^4.6.0","types-cloudflare-worker":"^1.2.0","@azure/app-configuration":"^1.3.1","@cloudflare/workers-types":"^4.20230228.0"},"optionalDependencies":{"@azure/cosmos":"^3.17.3","@azure/identity":"^3.1.3","@azure/data-tables":"^13.2.1","@azure/storage-blob":"^12.13.0","@planetscale/database":"^1.6.0","@azure/keyvault-secrets":"^4.6.0","@azure/app-configuration":"^1.3.1"},"_npmOperationalInternal":{"tmp":"tmp/unstorage_1.3.0_1678195103811_0.324580833007335","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":1678195103944,"_cnpm_publish_time":1678195103944,"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"}}