{"_id":"@batou.dev/vuex-persist-plugin","_rev":"3-3afd1cfb3dbe6e33cf0cb7bd157c1140","name":"@batou.dev/vuex-persist-plugin","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@batou.dev/vuex-persist-plugin","version":"0.1.0","author":{"name":"Vincent Batoufflet","email":"vincent@batou.dev"},"license":"MIT","_id":"@batou.dev/vuex-persist-plugin@0.1.0","maintainers":[{"name":"vbatoufflet","email":"vincent@batoufflet.info"}],"homepage":"https://github.com/vbatoufflet/vuex-persist-plugin#readme","bugs":{"url":"https://github.com/vbatoufflet/vuex-persist-plugin/issues"},"dist":{"shasum":"7fcf44bbcbdcc0391cd27cef8a6fbd435386c6a8","tarball":"https://registry.npmjs.org/@batou.dev/vuex-persist-plugin/-/vuex-persist-plugin-0.1.0.tgz","fileCount":7,"integrity":"sha512-o1AL6XEIbbmei2oimqsg6M5ZVu/9CkHYKVUoMa68B4BBRHfwZSuQmjjiZcGIpVpISN99mHRud3CIxkoCkpjcsA==","signatures":[{"sig":"MEYCIQDF+DmpQsJKvdPBVW1yS+xFQ49Qb1cgiD74+Mu5QwIU8gIhAJrCpwc0U5FyJe6kd+TyJRzCyaEUK4+oZEiaOaL4W9ck","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7553,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg97Y6CRA9TVsSAnZWagAA1BoP/0ZmBYC/MMC7iqmY/hg9\nppKS35CzNQlskZj+LeTLgeoijjs4ChCwZuMAqsSlRt31JtvQiaav3TqAvprL\nffBgedWlNTn6WdL8GX5G3rhpuobpCWz0cppPMl/h33YbnV/vd/4dwsx/Bejq\nfDILnXmfCV6RPtdUaG/MuW9dJlI2oEXYviBFoJyRK//Ytc63fALbQRI48Ldf\nD1oQOsJOaQmXvRIrOtTaUF0XXzBYsL393xIdlCrpIcT3EEIcaK8msuu0XQdD\nEHEmbux/nTAYTSxaFsai7uzPBMtNX/9sp3anquNP0OGq6W+O2QkDYh+qqtcN\nbXzKtOsIa34z2jwXIYzqVI4z55hvF0Uuzd/85Qx6oNMvnPDgmw3yMU/c91+o\nFww6K1JHHXTnwKt4/WDvPVfPbLmHifFL7l6m6j6V3LrZ/l0BUogkDd6Y7JZb\njxVkiihom9GEAMsiDJriHJqgJAA/5K7X41T0EOhEq/exQJ3T9aIjlmktyaIj\nuPrxCXPagm6FbE1AquuG+6xrKBWrr3/wgLY+WCuSAM/PU7Vn7IlE8hCFhIfC\nGaJqKLYYy/mnhymNGAw0lxvUVJwEhC+4X9gKYzAzGzMD46438w1ewtoMCYUX\ng2Cwy8TXoGDkHHpbzbK41B8JdtLlNy/sEw7wZju+RGIXOc9IYZi5PM32Q4nn\ngdBc\r\n=07+L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/vuex-persist.js","types":"types/index.d.ts","module":"dist/vuex-persist.es.js","gitHead":"511c2b53de87a4efd58af8ec5777867558e70517","scripts":{"lint":"eslint .","build":"rollup --config rollup.config.js","release":"npm run --production build && npm publish"},"_npmUser":{"name":"vbatoufflet","email":"vincent@batoufflet.info"},"repository":{"url":"git+https://github.com/vbatoufflet/vuex-persist-plugin.git","type":"git"},"_npmVersion":"7.18.1","description":"vuex-persist-plugin ===================","directories":{},"_nodeVersion":"16.4.2","_hasShrinkwrap":false,"devDependencies":{"vuex":"^3.6.2","eslint":"^7.31.0","typescript":"^4.3.5","rollup-plugin-esbuild":"^4.5.0","eslint-plugin-prettier":"^3.4.0","@rollup/plugin-commonjs":"^19.0.1","@typescript-eslint/parser":"^4.28.4","@typescript-eslint/eslint-plugin":"^4.28.4","eslint-plugin-simple-import-sort":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex-persist-plugin_0.1.0_1626846778455_0.2030777480570396","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2021-07-21T05:52:58.382Z","modified":"2026-04-26T12:50:35.668Z","0.1.0":"2021-07-21T05:52:58.624Z"},"bugs":{"url":"https://github.com/vbatoufflet/vuex-persist-plugin/issues"},"author":{"name":"Vincent Batoufflet","email":"vincent@batou.dev"},"license":"MIT","homepage":"https://github.com/vbatoufflet/vuex-persist-plugin#readme","repository":{"url":"git+https://github.com/vbatoufflet/vuex-persist-plugin.git","type":"git"},"description":"vuex-persist-plugin ===================","maintainers":[{"name":"vbatoufflet","email":"vincent@batoufflet.info"}],"readme":"vuex-persist-plugin\n===================\n\n[Vuex](https://vuex.vuejs.org/) plugin that provides state persistence relying\non a [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Storage)\nobject.\n\nInstall\n-------\n\nTo get started using this plugin, add the dependency via npm:\n\n```\nnpm install @batou.dev/vuex-persist-plugin\n```\n\nthen use it as a Vuex plugin:\n\n```typescript\nimport Persist from \"@batou.dev/vuex-persist-plugin\";\n\nconst persist = new Persist<State>({\n    // Optional configuration properties (see below)\n});\n\nconst store = createStore<State>({\n    state: { … },\n    mutations: { … },\n    plugins: [persist.plugin()],\n});\n```\n\nConfiguration\n-------------\n\n| Property   | Type              | Default               | Description                                                         |\n| ---------- | ----------------- | --------------------- | ------------------------------------------------------------------- |\n| debounce   | number            | `250`                 | Debounce timeout duration                                           |\n| key        | string            | `vuex-persist`        | Key to store the state into                                         |\n| reduce     | (state) => object |                       | Function to reduce the state. By default, the entire state is saved |\n| storage    | Storage           | `window.localStorage` | An object implementing the Web Storage API interface                |\n| unloadSave | boolean           | `false`               | Whether or not to automatically save the state upon page unload     |\n\nLinks\n-----\n\n* [Changelog](https://github.com/vbatoufflet/vuex-persist-plugin/blob/master/CHANGELOG.md)\n* [npm package](https://www.npmjs.com/package/@batou.dev/vuex-persist-plugin)\n\nLicense\n-------\n\nThis code is licensed and distributed under the term of the\n[MIT](https://opensource.org/licenses/MIT) license.\n","readmeFilename":"README.md"}