Registry / storage / storage-memory

storage-memory

JSON →
library0.0.2jsnpmunverified

A lightweight in-memory storage library for JavaScript, version 0.0.2. Provides a simple key-value store with get/set/remove/clear operations, similar to localStorage but in memory. No server or persistence needed. Useful for testing, mocking, or temporary data. Minimal API with no dependencies.

storage
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Package exports a default class. No named exports.

import StorageMemory from 'storage-memory'

CommonJS users must access .default property.

const StorageMemory = require('storage-memory').default

Basic usage: create an in-memory store, set, get, remove, and clear items.

import StorageMemory from 'storage-memory'; const store = new StorageMemory(); store.setItem('key', 'value'); const value = store.getItem('key'); console.log(value); // 'value' store.removeItem('key'); store.clear();
Debug
Known footguns
gotchaData is not persistent across page reloads or application restarts.
gotchaNo built-in expiration or TTL for stored items.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources