{"name":"unstorage","version":"1.5.0","license":"MIT","_id":"unstorage@1.5.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":"0e1b6939ac17a3d6d1d7c44abe8dacb48ebcb464","tarball":"http://registry-npm.ywwl.com/unstorage/download/unstorage-1.5.0.tgz","fileCount":74,"integrity":"sha512-bL6sHwTKp2ns0SAGNHAbLP9LwmtPGMtaOVrHRA4V8ngQMHQR18q0uRgkeGB4qF84XSDu/o8ebv54p/HBJESXFA==","signatures":[{"sig":"MEUCICwn+U9aFjd1welAEn84dsZDBqMZ1gZSi2foBu41zdjpAiEArbyfIbIoNUvxirp1+BzKSdTl0cF/SWxyObK++qYJ/6Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":161517,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkO/bGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5/A/+Ivz0FZPe0jDbj+xIzm0o8PWMy1Yz2OTDSPhpd89NRELwvymc\r\n1jID1c0nm3h2zM2dgFV4DsW/uVQKJXfCStTLHdsvokNniUzovmsD3rcfKNHO\r\nNy69HlfwbKvK4hZScIrZyamxnGbgy5GvmmC03j0oznfHKKJxVkffLR/T3UKF\r\nj4eWRJ3e3RQsh4oDNzKv2GCcPu79gM1U93vbRZldU6iCegKm3OwHYX5BqDR4\r\nlLFS6g0+YvYJuXCvvmtGFxjbhGOCTVz1vPns+raX7e/Q5JjPPmzjdr5kV8Zf\r\nJt5Ms8uXTJDP9E3w+FkgwqCmvrmMnQjcDz/DvHFid97dR4HIe0Su2c08HlNp\r\nz+MnLBtNkiQCc/cbFabIcHMIsV4fdhpll05bUVaMznbrAImMrwKh/27CFh5T\r\nnUvIjgcai3qWxGOXpR9QMzK6uhjBNzWvnqSm0mBsr1V8W3aWWANtqL7aU189\r\n2aA9jXupT5KknXGhA7gL0fPeCe9Iu3p3cKskJfR9uQT/vmYNml0qbhOf7aOY\r\nb0SIV14OI+Dplv5QNQO+hFrfeTcig/HrXINjW7FYUGgdg9ajrt1TZigyZyE1\r\nqI1STvGNUpSawdXY1rkM528gt8mNsGceQMFHYlC46fnEXlQjY6IYE3tz3s41\r\nfaYkojnaIYMhz6eS0ptFY+20cHMRWHAVuqY=\r\n=0LlW\r\n-----END PGP SIGNATURE-----\r\n","size":33819,"noattachment":false,"key":"/unstorage/-/unstorage-1.5.0.tgz"},"main":"./dist/index.cjs","_from":"file:unstorage-1.5.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/5ff703a281b6a147838633af6bbb12cf/unstorage-1.5.0.tgz","_integrity":"sha512-bL6sHwTKp2ns0SAGNHAbLP9LwmtPGMtaOVrHRA4V8ngQMHQR18q0uRgkeGB4qF84XSDu/o8ebv54p/HBJESXFA==","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.6.4","mri":"^1.2.0","ufo":"^1.1.1","destr":"^1.2.2","ofetch":"^1.0.1","ioredis":"^5.3.2","listhen":"^1.0.4","anymatch":"^3.1.3","chokidar":"^3.5.3","lru-cache":"^9.0.3","node-fetch-native":"^1.1.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.2.0","devDependencies":{"c8":"^7.13.0","msw":"^1.2.1","vue":"^3.2.47","jiti":"^1.18.2","vite":"^4.2.1","jsdom":"^21.1.1","eslint":"^8.38.0","vitest":"^0.30.1","azurite":"^3.23.0","mongodb":"^5.2.0","unbuild":"^1.2.1","prettier":"^2.8.7","@types/mri":"^1.1.1","typescript":"^5.0.4","@types/node":"^18.15.11","changelogen":"^0.5.3","@types/jsdom":"^21.1.1","ioredis-mock":"^8.6.0","@azure/cosmos":"^3.17.3","monaco-editor":"^0.37.1","@azure/identity":"^3.1.4","@vue/compiler-sfc":"^3.2.47","@azure/data-tables":"^13.2.2","@vitejs/plugin-vue":"^4.1.0","eslint-config-unjs":"^0.1.0","@azure/storage-blob":"^12.14.0","@types/ioredis-mock":"^8.2.1","@vitest/coverage-c8":"^0.30.1","@planetscale/database":"^1.7.0","mongodb-memory-server":"^8.12.2","@azure/keyvault-secrets":"^4.7.0","types-cloudflare-worker":"^1.2.0","@azure/app-configuration":"^1.3.1","@cloudflare/workers-types":"^4.20230404.0"},"peerDependencies":{"@azure/cosmos":"^3.17.3","@azure/identity":"^3.1.4","@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.3.1"},"peerDependenciesMeta":{"@azure/cosmos":{"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.5.0_1681651398166_0.9735211413170264","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":1681651398323,"_cnpm_publish_time":1681651398323,"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"}}