
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@converse/localforage-getitems
Advanced tools
This is a fork of localforage-getitems which adds support for the getAll
function for IndexedDB.
The upstream pull request is here: https://github.com/localForage/localForage-getItems/pull/12
The upstream project appears to be unmaintained and hasn't had any changes in 5 years.
npm i @converse/localforage-getitems
Just like getItem() but you can pass an array with the keys that need to be retrieved.
const keys = ['asdf','asap','async'];
localforage.getItems(keys).then((results) => {
console.log(results);
// prints:
// {
// asdf: 'asdf value!',
// asap: 'asap value!',
// async: 'async value!'
// }
console.log(results.asdf);
console.log(results['asdf']);
console.log(results[keys[0]]);
// all the above print 'asdf value!'
});
Invoking getItems() without arguments (or with null as the first argument) will retrieve all the items of the current driver instance.
localforage.getItems().then((results) => { });
// or by using callbacks
localforage.getItems(null, results) => { });
FAQs
Adds getItems method to localForage.
We found that @converse/localforage-getitems demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.