vlf

vue-localforage
28,130 119
Install
npm install vlf
Latest Version:1.1.0
License:ISC
Last Updated:Jan 7, 2023
Links: GitHub  ·  npm
Maintainer: dmlzj

vlf

vue-localforage and support typescript

Install

npm install  --save localforage vlf

How to use vlf

import Vlf from 'vlf'
import localforage from 'localforage'
Vue.use(Vlf, localforage)

In your code

// 创建实例
this.$vlf.createInstance({
    storeName: 'user'
})
// 迭代
this.$vlf.iterate((value, key, num) => {
    console.log(key);
});
// 设置值
this.$vlf.setItem('test', 'hello').then(v => {
    console.log(v);
});

// ...和官方调用一致
// The other methods of use are the same as the official website, just add a this.$vlf in front, the same behind!


Version History

Version Released License
1.1.0 ISC
1.0.9 ISC
1.0.8 ISC
1.0.7 ISC
1.0.6 ISC
Pre-releases (3)
Version Released License
1.0.8-beta2 ISC
1.0.8-beta1 ISC
1.0.8-beta ISC