1.0.0 • Published 7 years ago

vuex-localstorage v1.0.0

Weekly downloads
397
License
MIT
Repository
github
Last release
7 years ago

VUEX-LOCALSTORAGE

:dvd: Persist Vuex state with expires by localStorage or some else storage.

Travis Coveralls dependencies devDependency Status NPM version

Usage

import { Store } from 'vuex'
import createPersist, { createStorage } from 'vuex-localstorage'

new Store({
  plugins: [createPersist({
    namespace: 'namespace-for-state'
    initialState: {},
    // ONE_WEEK
    expires: 7 * 24 * 60 * 60 * 1e3
  })]
}

Live Example at PLATO

Development Setup

# install deps
npm install

# build dist files
npm run build

# lint & run all tests
npm test

# run unit tests only
npm run unit

Special Thanks

vuex-persistedstate

License

MIT

1.0.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago