Low-level module for persisting Balena settings in Node.js (filesystem) and browser environments. Version 8.2.0 is current, with a stable API surface focused on simple key-value storage through getStorage(), returning an object with set/get/has/remove/clear methods. Ships TypeScript types, supports ESM and CJS, requires Node >=14. Replaces the deprecated 'balena-settings-client'. Not intended for end users; use the high-level Balena SDK instead.
npm install balena-settings-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic CRUD operations: set, get, has, remove using the storage instance obtained via getStorage.
Use import syntax or if on Node, use dynamic import().
Switch to balena-settings-storage with updated API (getStorage pattern).
Do not rely on dataDirectory behavior in browser; use false to force in-memory storage in Node.
Use storage.has() to check existence before get().
Change import balenaSettingsStorage from 'balena-settings-storage' to import { getStorage } from 'balena-settings-storage'Run npm install balena-settings-storage and ensure import path is correct
Call getStorage({ dataDirectory: 'path' }) instead of getStorage()