FakeStorage

JSON →
library 2.1.0 ·javascript
verified Jun 7, 2026

In-memory implementation of the Web Storage API (localStorage/sessionStorage) for testing and server-side environments. v2.1.0, stable and maintained. Lightweight with zero dependencies, mirrors the browser Storage interface exactly. Unlike other storage shims, this is purely memory-based with no persistence, making it ideal for unit tests. Ships as CommonJS only, no TypeScript definitions.