{"library":"storage-deck","type":"library","category":null,"description":"A TypeScript library that provides a robust abstraction over browser localStorage and sessionStorage, with automatic in-memory fallback when storage is unavailable or quota is exceeded. Version 2.1.4 (last released) is stable and maintained on GitHub. Key differentiators: seamless overflow handling, custom global storage objects that can hold non-string data (e.g., File objects), and searchable keys with StartWith/EndsWith/Includes support via the Searchable type. Lightweight (~5KB minified), no dependencies, and includes full TypeScript definitions.","language":"javascript","status":"active","version":"2.1.4","tags":["javascript","deck","localStorage","overflow","sessionStorage","storage","web","storage-deck","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install storage-deck","imports":["import { addToLocalStorage } from 'storage-deck'","import { retrieveFromLocalStorage } from 'storage-deck'","import { SearchType } from 'storage-deck'","import type { StorageKeyValuePair } from 'storage-deck'"]},{"cmd":"yarn add storage-deck","imports":[]},{"cmd":"pnpm add storage-deck","imports":[]}],"homepage":"https://github.com/pseudosma/storage-deck","github":"git://github.com/pseudosma/storage-deck","docs":null,"changelog":null,"pypi":null,"npm":"storage-deck","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}