node-storage-shim

JSON →
library 2.0.1 ·javascript
verified Jun 7, 2026

An in-memory implementation of the W3C Storage Interface (localStorage/sessionStorage) for use as a shim in Node.js environments, primarily for unit testing. v2.0.1 (March 2020) is the latest stable release. It uses Proxy (since v2.0.0) to allow direct property access while maintaining the storage API. It does not persist data to disk and does not implement the 'storage' event. Lightweight, TypeScript declarations included.