MemoryStorage is a JavaScript library (v0.12.0) that provides an in-memory implementation of the Web Storage API (localStorage/sessionStorage). It serves as a drop-in replacement for environments where the native Web Storage API is unavailable, such as older browsers or server-side Node.js. The library supports both isolated (namespaced) and shared storage instances, follows the W3C specification, and is distributed as a UMD module compatible with CommonJS, AMD, and ES modules. It is lightweight (~2KB minified), has no dependencies, and is maintained by the Download organization on GitHub.
npm install memorystorageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create MemoryStorage instances (shared or isolated) and demonstrate basic Web Storage API operations.
Use either 'new MemoryStorage()' or 'MemoryStorage()'.
Do not attempt to overwrite the 'id' property after construction.
Use 'import MemoryStorage from 'memorystorage'' or 'const MemoryStorage = require('memorystorage')'.Ensure you use default import: 'import MemoryStorage from 'memorystorage''.
No dependency data recorded yet.