{"id":13508372,"url":"https://github.com/dmlzj/vlf","last_synced_at":"2025-03-30T11:31:44.659Z","repository":{"id":44016012,"uuid":"104698320","full_name":"dmlzj/vlf","owner":"dmlzj","description":"A  Vue plugin  from localForage.vue-localForage or vlf","archived":false,"fork":false,"pushed_at":"2023-01-07T13:34:58.000Z","size":1468,"stargazers_count":117,"open_issues_count":11,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T21:52:46.033Z","etag":null,"topics":["indexeddb","localforage","localstorage","storage","vlf","vue","vue-localforage","websql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmlzj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-25T03:16:17.000Z","updated_at":"2025-02-11T21:33:36.000Z","dependencies_parsed_at":"2023-02-07T07:42:43.444Z","dependency_job_id":null,"html_url":"https://github.com/dmlzj/vlf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmlzj%2Fvlf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmlzj%2Fvlf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmlzj%2Fvlf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmlzj%2Fvlf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmlzj","download_url":"https://codeload.github.com/dmlzj/vlf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314011,"owners_count":20757450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["indexeddb","localforage","localstorage","storage","vlf","vue","vue-localforage","websql"],"created_at":"2024-08-01T02:00:52.170Z","updated_at":"2025-03-30T11:31:44.375Z","avatar_url":"https://github.com/dmlzj.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003c!--\n * @Description: readme\n * @Author: dmlzj\n * @Github: https://github.com/dmlzj\n * @Email: 284832506@qq.com\n * @Date: 2020-01-10 15:00:51\n * @LastEditors  : dmlzj\n * @LastEditTime : 2020-01-10 15:51:51\n * @如果有bug，那肯定不是我的锅，嘤嘤嘤\n --\u003e\n# vlf\n\nvue-localforage and support typescript\n\n\u003e localForage is a fast and simple storage library for JavaScript. localForage improves the offline experience of your web app by using asynchronous storage (IndexedDB or WebSQL) with a simple, `localStorage`-like API.\n\n\u003e localForage uses localStorage in browsers with no IndexedDB or WebSQL support. See [the wiki for detailed compatibility info][supported browsers].\n\n- [localforage repository](https://github.com/localForage/localForage)\n- [localforage documentation](https://localforage.github.io/localForage/)\n\n## Install\n\n```bash\nnpm install  --save localforage vlf\n```\n\n## How to use vlf\n\n```javascript\nimport Vlf from 'vlf'\nimport localforage from 'localforage'\nVue.use(Vlf, localforage)\n```\n\n## In your code\n\n```javascript\n// 创建实例\nthis.$vlf.createInstance({\n    storeName: 'user'\n})\n// 迭代\nthis.$vlf.iterate((value, key, num) =\u003e {\n    console.log(key);\n});\n// 设置值\nthis.$vlf.setItem('test', 'hello').then(v =\u003e {\n    console.log(v);\n});\n\n// ...和官方调用一致\n// The other methods of use are the same as the official website, just add a this.$vlf in front, the same behind!\n\n```\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmlzj%2Fvlf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmlzj%2Fvlf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmlzj%2Fvlf/lists"}