{"name":"unstorage","version":"1.4.0","license":"MIT","_id":"unstorage@1.4.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":"809ed1dd8d94e68827646a1481c8841f58df18c4","tarball":"http://registry-npm.ywwl.com/unstorage/download/unstorage-1.4.0.tgz","fileCount":71,"integrity":"sha512-l4ggmklguKsfkoEcO9QiSgnYLEUTVqHk+Sl9Y63FzhUnCqGz7icxLX7WmvDwPtAYH6qI4hBkfJbVVjS5rispMQ==","signatures":[{"sig":"MEUCIQCyl3b4kGZ6YuX0pL2+2rcqvIncqi2sUPhMMhNQCaAg4wIgCog8/ig+Cw4rjZwbswFu9RAGRax50D7/EqMLfM7F7WI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":156495,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCJRfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrz1hAAgD3zHjgBqfkI+GjAv5VUYXhmyD2juWYiEQ40MpMDT6MxmkfV\r\n4d8Pt+DKzfs+cY5T4TMXzizUkxWUGbv+xeF3/zAXVkXl10lx0b6+T32r8T4n\r\n+M747gaBA+XX4AfJCNRwwQ36lnslmveh/EgmJ+MHDlofFnPJDkOb3ODCPE5k\r\n8G06RZ48EMcFgmH0H7t8OXtjGKEcncXlov4pdRomm2IW0ixhS4Ius4zUcdpO\r\n61UUDNUfY7nIExL5VBJC74NGysBwpF0j3PgdWfjJqfClX0lGtI3GRSd3iHrN\r\nhGulUGmOcbHwnBiwAozOAdPonEHawr3/+wXpYdvsWV8p2ylnSzM8beaxCRIa\r\ndxjPq+BxOMverdW+4f0evYvnotIrgCNVqDG2qG/Ea9RZvWmZUqtfy9ixbE0+\r\nAlHoOed17U7YQBs8gycs45cLl0pXdx1ZTjugSUQJl9Tfv23t9cBZ1NFjxt0B\r\nr/VwRl4oznvudnWFCNioq9tK0s6gAz0hpA7ehXfUYAz42+4ll5/gO4l5Rqae\r\nfL8jKly9BX+xMxTDNgYkZRkn7bhmTpDTRww9GomlrTUU033PlJIneewhy33u\r\ng3TXAoZ16406GrdxL6V2qbHMpiTuyLLl7HTCOr7IyedZRmavYI26ZTRMDuWH\r\n/OhPKN51PYuDreUDJ365jkYU1LTDmiTDQL8=\r\n=oNZb\r\n-----END PGP SIGNATURE-----\r\n","size":33316,"noattachment":false,"key":"/unstorage/-/unstorage-1.4.0.tgz"},"main":"./dist/index.cjs","_from":"file:unstorage-1.4.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/c076b40bd66de184cb42c84342a184d8/unstorage-1.4.0.tgz","_integrity":"sha512-l4ggmklguKsfkoEcO9QiSgnYLEUTVqHk+Sl9Y63FzhUnCqGz7icxLX7WmvDwPtAYH6qI4hBkfJbVVjS5rispMQ==","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.4.0_1678283871238_0.048910936329050525","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":1678283871443,"_cnpm_publish_time":1678283871443,"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"}}