0.0.5 • Published 6 years ago
v-storage v0.0.5
Version Storage
Introduction
v-storage
is a storage lib which support simple version control base on the package good-storage
Install
# npm
npm i v-storage
# yarn
yarn add v-storage
Usage
const version = 'v1'
const guarded = [
'version',
'guarded',
'guard1',
'guard2',
'guard3',
'guard4',
]
window.vStorage = new VersionStorage(version, guarded)
vStorage.set('key', 'value')
API
Almost the same as good-storage. Or read the source code directly.