A lightweight utility for easy set and get operations on Web Storage (localStorage and sessionStorage) with TypeScript type definitions. Current version 0.3.2, released as part of the react-atomic-organism monorepo. It provides a simple API to handle serialization/deserialization, supports default values, and works in browser environments. Compared to similar libraries like store2 or localForage, get-storage focuses on minimal footprint and ESM compatibility.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Package is ESM-only; CommonJS require will fail. Use named import.
setStorage is a named export, not default.
Named export for removing a key.
Type-only import to avoid runtime overhead when only using types.
Demonstrates basic set, get with default, remove operations, custom storage option, and TypeScript generics.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.