vuex-persistedstate
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "vuex-persistedstate", | ||
"description": "Persist Vuex state with localStorage.", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
"author": "Robin van der Vleuten <robin@webstronauts.co>", | ||
"keywords": [ | ||
"vue", | ||
"vuex", | ||
"plugin" | ||
], | ||
"homepage": "https://github.com/robinvdvleuten/vuex-persistedstate#readme", | ||
@@ -15,10 +20,22 @@ "repository": { | ||
}, | ||
"main": "src/plugin.js", | ||
"main": "dist/vuex-persistedstate.js", | ||
"files": [ | ||
"dist/vuex-persistedstate.js", | ||
"dist/vuex-persistedstate.min.js", | ||
"src" | ||
], | ||
"scripts": { | ||
"build": "rollup --environment NODE_ENV:production -c build/rollup.config.js && uglifyjs dist/vuex-persistedstate.js -cm --comments -o dist/vuex-persistedstate.min.js" | ||
}, | ||
"dependencies": { | ||
"lodash.merge": "^4.6.0", | ||
"object-path": "^0.11.2" | ||
}, | ||
"devDependencies": { | ||
"rollup": "^0.36.0", | ||
"rollup-plugin-babel": "^2.6.1", | ||
"rollup-plugin-buble": "^0.14.0", | ||
"rollup-plugin-commonjs": "^5.0.4", | ||
"uglify-js": "^2.7.3" | ||
} | ||
} |
# vuex-persistedstate | ||
Persist [Vuex](http://vuex.vuejs.org/) state with [localStorage](https://developer.mozilla.org/nl/docs/Web/API/Window/localStorage). | ||
## Installation | ||
```bash | ||
$ npm install vuex-persistedstate | ||
``` | ||
## Usage | ||
```js | ||
import createPersistedState from 'vuex-persistedstate' | ||
const store = new Vuex.Store({ | ||
// ... | ||
plugins: [createcreatePersistedState()] | ||
}) | ||
``` | ||
## License | ||
[MIT](http://opensource.org/licenses/MIT) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5240
6
51
25
5
2