Polyfill for the proposed kv-storage built-in module (WICG spec), version 2.0.0. Provides a simple key-value storage API similar to the native `std:kv-storage` module for browsers that don't support it yet, with optional import map fallback. It offers an async API similar to IndexedDB but simpler, and uses a shim backed by localStorage or IndexedDB. Works in modern browsers and Node.js (15+), but the native standard is not yet widely implemented.
npm install kv-storage-polyfillNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic set, get, delete operations with the storage export.
Use import syntax or dynamic import('kv-storage-polyfill').Consider using localForage or IndexedDB for production projects.
Use a different key-value store if cross-tab or cross-origin sharing is required.
Run: npm install kv-storage-polyfill
Add "type": "module" to package.json or use .mjs extension; in browsers use <script type="module">.
Use named import: import { storage } from 'kv-storage-polyfill';No dependency data recorded yet.