1.0.4 • Published 6 years ago

smart-localstorage v1.0.4

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

Simply do a degraded compatibility encapsulation of vuex-persistedstate


Usage:

npm install smart-localstorage (or yarn add)

...
import Vuex from 'vuex'
import smartLocalstorage from 'smart-localstorage'
...

export default new Vuex.Store({
    ...
    /* localStorage || sessionStorage ||  */
    plugins: [smartLocalstorage()]
})

package use localstorage by default, use sessionStorage by transfer parameter 'sessionStorage' like smartLocalstorage('sessionStorage'), the downgrade process is using js-cookie

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago