Tiny wrapper over idb-keyval for client-side caching in PWAs, adding versioning and max-age support. Current stable version is 4.0.0, ESM-only. Designed to swallow errors for non-critical caching. Provides a simple cache API with get, set, del, clear, keys, getAll, getConfiguredCache, createStore, and keyValLib. Version 4.0.0 requires modern bundlers and uses ES modules.
npm install money-clipNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of set(), get(), getAll() and getConfiguredCache() with versioning and max age in milliseconds.
Use import syntax or switch to a bundler that supports ES modules
Do not rely on error handling for caching logic; check for null or empty object
If you want to clean up stale entries, consider using get() which deletes on failure
Run 'npm install money-clip' and ensure you are using the correct import syntax (ESM)
Replace require() with import statements: import { ... } from 'money-clip'