@novasamatech/storage-adapter
v0.13.0
Published
Key-value storage abstraction
Keywords
Readme
@novasamatech/storage-adapter
Key-value storage abstraction shared by the SDK packages.
Overview
StorageAdapter is a small async string key-value interface (read, write, clear, subscribe). The package ships
two implementations and two typed views over a single key:
createLocalStorageAdapter(prefix)— backed bylocalStorage, keys namespaced byprefix;createMemoryAdapter()— in-memory, for tests and non-browser environments;fieldView,fieldListView— typed read/write access to one key with custom (de)serialization.
Installation
npm install @novasamatech/storage-adapter --save -E