{"id":23084132,"url":"https://github.com/localforage/localforage-getitems","last_synced_at":"2025-12-12T03:10:51.598Z","repository":{"id":32020069,"uuid":"35591265","full_name":"localForage/localForage-getItems","owner":"localForage","description":"Adds getItems method to localForage.","archived":false,"fork":false,"pushed_at":"2023-02-14T11:42:27.000Z","size":61,"stargazers_count":25,"open_issues_count":4,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-11T00:39:03.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/localForage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-14T04:45:51.000Z","updated_at":"2023-12-19T08:50:19.000Z","dependencies_parsed_at":"2024-06-18T15:43:37.503Z","dependency_job_id":"ec2c738a-3664-448f-86e6-9b6c11cb51ba","html_url":"https://github.com/localForage/localForage-getItems","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":0.05882352941176472,"last_synced_commit":"35dce7eb03ad70751283bdff9d8623c3a20d4f9e"},"previous_names":["thgreasi/localforage-getitems"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localForage%2FlocalForage-getItems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localForage%2FlocalForage-getItems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localForage%2FlocalForage-getItems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localForage%2FlocalForage-getItems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localForage","download_url":"https://codeload.github.com/localForage/localForage-getItems/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229988092,"owners_count":18155680,"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":[],"created_at":"2024-12-16T15:49:14.421Z","updated_at":"2025-12-12T03:10:46.546Z","avatar_url":"https://github.com/localForage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"localForage-getItems\n====================\n[![npm](https://img.shields.io/npm/dm/localforage-getitems.svg)](https://www.npmjs.com/package/localforage-getitems)  \nAdds getItems method to [localForage](https://github.com/mozilla/localForage).\n\n## Requirements\n\n* [localForage](https://github.com/mozilla/localForage) v1.4.0+\n  * for earlier versions of localforage, please use the v1.1.x releases\n\n## Installation\n`npm i localforage-getitems`\n\n## jsperf links\n* [default driver order (indexedDB prefered)](https://jsperf.com/localforage-getitems-2017/1)\n* [websql (not for firefox)](https://jsperf.com/localforage-getitems-websql-2017b/1)\n\n## API\nJust like `getItem()` but you can pass an array with the keys that need to be retrieved.\n```js\nvar keys = ['asdf','asap','async'];\nlocalforage.getItems(keys).then(function(results) {\n  console.log(results);\n  // prints:\n  // {\n  //   asdf: 'asdf value!',\n  //   asap: 'asap value!',\n  //   async: 'async value!'\n  // }\n\n  console.log(results.asdf);\n  console.log(results['asdf']);\n  console.log(results[keys[0]]);\n  // all the above print 'asdf value!'\n});\n```\n\nInvoking `getItems()` without arguments (or with `null` as the first argument) will retrieve all the items of the current driver instance.\n```js\nlocalforage.getItems().then(function(results) { });\n// or by using callbacks\nlocalforage.getItems(null, function(results) { });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalforage%2Flocalforage-getitems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalforage%2Flocalforage-getitems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalforage%2Flocalforage-getitems/lists"}