{"library":"local-storage-fallback","type":"library","category":null,"description":"A browser storage adapter that automatically falls back through localStorage, sessionStorage, cookies, and in-memory storage, depending on what is available and not throwing exceptions (e.g., in private browsing mode). Current stable version is 5.0.0. Maintained infrequently. Key differentiator: handles private browsing and quota errors gracefully where native localStorage would throw, and provides a unified API across all backends. Fully typed with TypeScript definitions.","language":"javascript","status":"active","version":"5.0.0","tags":["javascript","localStorage","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install local-storage-fallback","imports":["import storage from 'local-storage-fallback'","const storage = require('local-storage-fallback'); // then use storage.getItem()","<script src=\"dist.min.js\"><script>window.localStorageFallback.setItem('foo', 'bar')","import storage from 'local-storage-fallback';\n// storage itself has no named export; types only"]},{"cmd":"yarn add local-storage-fallback","imports":[]},{"cmd":"pnpm add local-storage-fallback","imports":[]}],"homepage":"https://github.com/ripeworks/local-storage-fallback#readme","github":"https://github.com/ripeworks/local-storage-fallback","docs":null,"changelog":null,"pypi":null,"npm":"local-storage-fallback","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}