{"_id":"@douglassllc/vuex-electron","_rev":"3-aa0c8555fbc0fa3ecd30d09cfaa14b84","name":"@douglassllc/vuex-electron","dist-tags":{"latest":"1.2.5"},"versions":{"1.2.3":{"name":"@douglassllc/vuex-electron","version":"1.2.3","keywords":["vue","vuex","electron"],"author":{"name":"Andrew Emelianenko","email":"emelianenko.web@gmail.com"},"license":"MIT","_id":"@douglassllc/vuex-electron@1.2.3","maintainers":[{"name":"douglassllc","email":"development@douglassllc.com"}],"homepage":"https://github.com/vue-electron/vuex-electron","bugs":{"url":"https://github.com/vue-electron/vuex-electron/issues"},"dist":{"shasum":"7bcc6b915af81bcd2f45ec6be538ee0597daded1","tarball":"https://registry.npmjs.org/@douglassllc/vuex-electron/-/vuex-electron-1.2.3.tgz","fileCount":19,"integrity":"sha512-7ZO5VvBfCkoY98HuaMYpDsMhfGNcITZJ6sosxb7bGJie0k0sijpjmoGG62ePntGGZ0qSxLSg2DWpXInbLCIngQ==","signatures":[{"sig":"MEYCIQCTcp7C3W5WFZLUCd6PLy0ZaScipBEgNtfNcS9whfWhiAIhAK0FNbDyWiIeHYdWjhSI0aWXpB4+Ew7JlEOvjKnSowkf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29874},"jest":{"collectCoverage":true,"collectCoverageFrom":["src/**/*.js"]},"main":"./dist/index.js","engines":{"node":"<19"},"gitHead":"be71ee6a155e45f79d2cddd35ab836bc27aa74c8","private":false,"scripts":{"lint":"eslint .","test":"yarn lint && jest && bundlesize","build":"babel src -d dist --env-name production","watch":"babel src -d dist --watch","lint:fix":"eslint . --fix","prebuild":"rm -rf dist && mkdir dist"},"_npmUser":{"name":"douglassllc","email":"development@douglassllc.com"},"bundlesize":[{"path":"./dist/**/*.js","maxSize":"2 kB"}],"repository":{"url":"git+https://github.com/vue-electron/vuex-electron.git","type":"git"},"_npmVersion":"9.5.0","description":"Vuex Electron","directories":{},"_nodeVersion":"18.15.0","dependencies":{"deepmerge":"^4.3.1","electron-store":"^8.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.7.16","jest":"^29.7.0","vuex":"^3.6.2","eslint":"^8.57.0","electron":"^29.1.5","prettier":"^3.2.5","@babel/cli":"^7.24.1","babel-core":"^7.0.0-0","babel-jest":"^29.7.0","bundlesize":"^0.18.2","@babel/core":"^7.24.3","babel-eslint":"^10.1.0","@babel/preset-env":"^7.24.3","eslint-plugin-jest":"^27.9.0","babel-preset-minify":"^0.5.2","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","babel-plugin-add-module-exports":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/vuex-electron_1.2.3_1711558147774_0.3694712226760284","host":"s3://npm-registry-packages"}},"1.2.4":{"name":"@douglassllc/vuex-electron","version":"1.2.4","keywords":["vue","vuex","electron"],"author":{"name":"Andrew Emelianenko","email":"emelianenko.web@gmail.com"},"license":"MIT","_id":"@douglassllc/vuex-electron@1.2.4","maintainers":[{"name":"douglassllc","email":"development@douglassllc.com"}],"homepage":"https://github.com/vue-electron/vuex-electron","bugs":{"url":"https://github.com/vue-electron/vuex-electron/issues"},"dist":{"shasum":"9fcf75dc16dfd520eca08406dea5bef1f0e46257","tarball":"https://registry.npmjs.org/@douglassllc/vuex-electron/-/vuex-electron-1.2.4.tgz","fileCount":7,"integrity":"sha512-ViStV7za8Qa1e2U23ES0dzWpkj38COTHeDBO5yfQsh4tikcC+38a20SAStBY1cojY8xsWer+cs689qHHjfBtzQ==","signatures":[{"sig":"MEUCIAtILgQyfLdGpFI37SLqoOHMpZ9HPyawa9DvuxH9ALvHAiEAu03nd2En14Zt1MAymfrfgssmAhX2sjkacaz9l2yXC34=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15104},"jest":{"collectCoverage":true,"collectCoverageFrom":["src/**/*.js"]},"main":"./dist/index.js","engines":{"node":"<19"},"gitHead":"5434e253e82a406d408d740f76131e8e708dbe1b","private":false,"scripts":{"lint":"eslint .","test":"yarn lint && jest && bundlesize","build":"babel src -d dist --env-name production","watch":"babel src -d dist --watch","lint:fix":"eslint . --fix","prebuild":"rm -rf dist && mkdir dist"},"_npmUser":{"name":"douglassllc","email":"development@douglassllc.com"},"bundlesize":[{"path":"./dist/**/*.js","maxSize":"2 kB"}],"repository":{"url":"git+https://github.com/vue-electron/vuex-electron.git","type":"git"},"_npmVersion":"9.5.0","description":"Vuex Electron","directories":{},"_nodeVersion":"18.15.0","dependencies":{"deepmerge":"^4.3.1","electron-store":"^8.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.7.16","jest":"^29.7.0","vuex":"^3.6.2","eslint":"^8.57.0","electron":"^29.1.5","prettier":"^3.2.5","@babel/cli":"^7.24.1","babel-core":"^7.0.0-0","babel-jest":"^29.7.0","bundlesize":"^0.18.2","@babel/core":"^7.24.3","babel-eslint":"^10.1.0","@babel/preset-env":"^7.24.3","eslint-plugin-jest":"^27.9.0","babel-preset-minify":"^0.5.2","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","babel-plugin-add-module-exports":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/vuex-electron_1.2.4_1716109174283_0.0931390895083477","host":"s3://npm-registry-packages"}},"1.2.5":{"name":"@douglassllc/vuex-electron","version":"1.2.5","description":"Vuex Electron","keywords":["vue","vuex","electron"],"main":"./dist/index.js","repository":{"type":"git","url":"git+https://github.com/vue-electron/vuex-electron.git"},"homepage":"https://github.com/vue-electron/vuex-electron","bugs":{"url":"https://github.com/vue-electron/vuex-electron/issues"},"author":{"name":"Andrew Emelianenko","email":"emelianenko.web@gmail.com"},"license":"MIT","private":false,"scripts":{"prebuild":"rm -rf dist && mkdir dist","build":"babel src -d dist --env-name production","watch":"babel src -d dist --watch","lint":"eslint .","lint:fix":"eslint . --fix","test":"yarn lint && jest"},"jest":{"collectCoverage":true,"collectCoverageFrom":["src/**/*.js"]},"devDependencies":{"@babel/cli":"^7.24.1","@babel/core":"^7.24.3","@babel/preset-env":"^7.24.3","babel-core":"^7.0.0-0","babel-eslint":"^10.1.0","babel-jest":"^29.7.0","babel-plugin-add-module-exports":"^1.0.4","babel-preset-minify":"^0.5.2","electron":"^29.1.5","eslint":"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-plugin-jest":"^27.9.0","eslint-plugin-prettier":"^5.1.3","jest":"^29.7.0","prettier":"^3.2.5","vue":"^2.7.16","vuex":"^3.6.2"},"dependencies":{"deepmerge":"^4.3.1","electron-store":"^8.2.0"},"_id":"@douglassllc/vuex-electron@1.2.5","gitHead":"ac5cd80be7a9fa0a066a08946fce1c096db5b2d4","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-QjgUzhno4WjkKpssjwfmAxpL50GKFVIw2ayJScK+TiTnMAd1ieu+Nt6Kjx7+wWwPqnfWbI72PYMMjm6OryIc3A==","shasum":"0e544372900329f7ca689636ee4f302356aa1ca1","tarball":"https://registry.npmjs.org/@douglassllc/vuex-electron/-/vuex-electron-1.2.5.tgz","fileCount":7,"unpackedSize":14961,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFCmeVVYY/yNK4rrXbLUB9Ofh1H8BEeLv1bPXN9Q7+zdAiEA23NXIB+r5RIviV62QUGH18LHykWz2QXg60NvtdsRTxk="}]},"_npmUser":{"name":"douglassllc","email":"development@douglassllc.com"},"directories":{},"maintainers":[{"name":"douglassllc","email":"development@douglassllc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vuex-electron_1.2.5_1761577289699_0.400799299467405"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-27T16:49:07.652Z","modified":"2025-10-27T15:01:30.107Z","1.2.3":"2024-03-27T16:49:07.937Z","1.2.4":"2024-05-19T08:59:34.454Z","1.2.5":"2025-10-27T15:01:29.897Z"},"bugs":{"url":"https://github.com/vue-electron/vuex-electron/issues"},"author":{"name":"Andrew Emelianenko","email":"emelianenko.web@gmail.com"},"license":"MIT","homepage":"https://github.com/vue-electron/vuex-electron","keywords":["vue","vuex","electron"],"repository":{"type":"git","url":"git+https://github.com/vue-electron/vuex-electron.git"},"description":"Vuex Electron","maintainers":[{"name":"douglassllc","email":"development@douglassllc.com"}],"readme":"<p align=\"center\">\n  <img width=\"750\" src=\"https://user-images.githubusercontent.com/678665/45566726-404d9e80-b860-11e8-94b6-527dfcc3b3b3.png\">\n</p>\n\n# Vuex Electron\n\n[![Travis](https://img.shields.io/travis/com/vue-electron/vuex-electron.svg?style=for-the-badge&longCache=true)](https://travis-ci.com/vue-electron/vuex-electron)\n[![Code Climate](https://img.shields.io/codeclimate/maintainability/vue-electron/vuex-electron.svg?style=for-the-badge&longCache=true)](https://codeclimate.com/github/vue-electron/vuex-electron)\n[![Code Climate](https://img.shields.io/codeclimate/coverage/vue-electron/vuex-electron.svg?style=for-the-badge&longCache=true)](https://codeclimate.com/github/vue-electron/vuex-electron)\n[![Code Style Prettier](https://img.shields.io/badge/code%20style-prettier-brightgreen.svg?style=for-the-badge&longCache=true)](https://github.com/prettier/prettier)\n[![Made With Love](https://img.shields.io/badge/made%20with-love-brightgreen.svg?style=for-the-badge&longCache=true)](https://github.com/MrEmelianenko)\n\nThe easiest way to share your Vuex Store between all processes (including main).\n\n### Features\n\n:star: Persisted state  \n:star: Shared mutations\n\n### Requirements\n\n- [Vue](https://github.com/vuejs/vue) v2.0+\n- [Vuex](https://github.com/vuejs/vuex) v2.0+\n- [Electron](https://github.com/electron/electron) v2.0+\n\n### Installation\n\nInstallation of the Vuex Electron easy as 1-2-3.\n\n1. Install package with using of [yarn](https://github.com/yarnpkg/yarn) or [npm](https://github.com/npm/cli):\n\n    ```\n    yarn install vuex-electron\n    ```\n\n    or\n\n    ```\n    npm install vuex-electron\n    ```\n\n2. Include plugins in your Vuex store::\n\n    ```javascript\n    import Vue from \"vue\"\n    import Vuex from \"vuex\"\n\n    import { createPersistedState, createSharedMutations } from \"vuex-electron\"\n\n    Vue.use(Vuex)\n\n    export default new Vuex.Store({\n      // ...\n      plugins: [\n        createPersistedState(),\n        createSharedMutations()\n      ],\n      // ...\n    })\n    ```\n\n3. In case if you enabled `createSharedMutations()` plugin you need to create an instance of store in the main process. To do it just add this line into your main process (for example `src/main.js`):\n\n    ```javascript\n    import './path/to/your/store'\n    ```\n\n4. Well done you did it! The last step is to add the star to this repo :smile:\n\n**Usage example: [Vuex Electron Example](https://github.com/vue-electron/vuex-electron-example)**\n\n## IMPORTANT\n\nIn renderer process to call actions you need to use `dispatch` or `mapActions`. Don't use `commit` because actions fired via `commit` will not be shared between processes.\n\n### Options\n\nAvailable options for `createPersistedState()`\n\n```javascript\ncreatePersistedState({\n  whitelist: [\"whitelistedMutation\", \"anotherWhitelistedMutation\"],\n\n  // or\n\n  whitelist: (mutation) => {\n    return true\n  },\n\n  // or\n\n  blacklist: [\"ignoredMutation\", \"anotherIgnoredMutation\"],\n\n  // or\n\n  blacklist: (mutation) => {\n    return true\n  }\n})\n```\n\n### Author\n\nAndrew Emelianenko  \nIG: [@truemelianenko](https://www.instagram.com/truemelianenko)\n\n### License\n\n[MIT License](https://github.com/vue-electron/vuex-electron/blob/master/LICENSE)\n","readmeFilename":"README.md"}