Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vuex-persistedstate

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuex-persistedstate - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

dist/vuex-persistedstate.js

21

package.json
{
"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)
src/plugin.js
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc