Isomorphic Key-Value Storage Interface (v1.0.0) providing a unified API across Node.js, React Native, and browser environments. Abstracts over AsyncStorage (React Native) and SQLite (Node.js) for persistent key-value storage. Ships TypeScript definitions and uses async/await. Lightweight (~1kB) with no runtime dependencies. Differentiator: single interface for multiple platforms without additional setup.
npm install keyvaluestorage-interfaceNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: create storage instance (Node.js in-memory SQLite), set, get, list keys, and remove items.
Install @react-native-async-storage/async-storage and pass it as `asyncStorage` option.
Provide a valid database string (e.g., 'mydb.db') or ':memory:'.
Use the same tableName for all storage operations against the same database file.
Consider using 'localforage' or similar for browser-only apps.
Change to `import KeyValueStorage from 'keyvaluestorage-interface'`
Provide a database path or ':memory:' in options object.
Pass the AsyncStorage module from @react-native-async-storage/async-storage.
No dependency data recorded yet.