{"id":23084145,"url":"https://github.com/localforage/localforage-removeitems","last_synced_at":"2025-09-21T16:26:30.550Z","repository":{"id":58223149,"uuid":"61484604","full_name":"localForage/localForage-removeItems","owner":"localForage","description":"Adds removeItems method to localForage. ","archived":false,"fork":false,"pushed_at":"2018-11-05T21:00:13.000Z","size":15,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-13T02:14:38.455Z","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}},"created_at":"2016-06-19T14:39:24.000Z","updated_at":"2023-10-24T14:03:46.000Z","dependencies_parsed_at":"2022-08-31T02:00:58.174Z","dependency_job_id":null,"html_url":"https://github.com/localForage/localForage-removeItems","commit_stats":null,"previous_names":["localforage-extensions/localforage-removeitems"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localForage%2FlocalForage-removeItems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localForage%2FlocalForage-removeItems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localForage%2FlocalForage-removeItems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localForage%2FlocalForage-removeItems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localForage","download_url":"https://codeload.github.com/localForage/localForage-removeItems/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:15.606Z","updated_at":"2025-09-21T16:26:25.492Z","avatar_url":"https://github.com/localForage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"localForage-removeItems\n====================\n[![npm](https://img.shields.io/npm/dm/localforage-removeitems.svg)](https://www.npmjs.com/package/localforage-removeitems)  \nAdds removeItems method to [localForage](https://github.com/mozilla/localForage).\n\n## Requirements\n\n* [localForage](https://github.com/mozilla/localForage) v1.4.0+\n\n## Installation\n`npm i localforage-removeitems`\n\n## Importing\n\n### TypeScript\n\n[Include `localforage` with an import statement appropriate for your configuration](https://github.com/localForage/localForage/blob/master/README.md#typescript) and import `localforage-removeitems` right after it.\n\nNormally, `localforage-removeitems` will extend the prototype of `locaforage` to include the `removeItems()` method, but unfortunately the typings can't be updated.\nAs a result you should use the exported `extendPrototype()` method, which returns the provided localforage instance but with inherited typings that also include the `removeItems()` method.\n\n```javascript\nimport localForage from 'localforage';\n// OR based on your configuration:\n// import * as localForage from 'localforage';\n\nimport { extendPrototype } from 'localforage-removeitems';\n\nextendPrototype(localforage);\n\n// Keep using localForage as usual.\n```\n\n### Known issues with module bundlers\n\nIn some ES6 module bundlers `.removeItems()` might not automatically be made available to the `localforage` object on import.\nIn this case, import the provided `extendPrototype()` method and extend `localforage` manually, as shown in the Typescript section.\n\n## API\nJust like `removeItem()` but you can pass an array with the keys that need to be removed.\n```js\nlocalforage.removeItems(['asdf','asap','async']);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalforage%2Flocalforage-removeitems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalforage%2Flocalforage-removeitems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalforage%2Flocalforage-removeitems/lists"}