How david-fernando/nodestorage works
NodeStorage is a small Node.js local-storage library. A caller creates a storage instance, which loads persisted items into memory; its methods read or update that state, while mutations write it back to a JSON file. The README documents the full browser-like API. The runtime is contained in one source file, so API and persistence responsibilities share that path.
Main entry points: index.js Storage API
Components 7
Other components
- Library caller
- Storage API
index.js - Load items
index.js - In-memory items
index.js - Persist items
index.js - JSON file
- Node filesystem
Connections 10
- Library caller → Storage API: creates instance
README.md - Storage API → Load items: loads items
index.js - Load items → JSON file: reads
index.js - Load items → Node filesystem: checks and reads
index.js - Storage API → In-memory items: exposes methods
index.js - Storage API → Persist items: set/remove write
index.js - Persist items → JSON file: writes JSON
index.js - Persist items → Node filesystem: writes file
index.js - Storage API → JSON file: clear unlinks
index.js - Storage API → Node filesystem: unlinks file
index.js