preferences
Persistent key-value storage with JSON serialization, backed by SQLite at ~/.homunculus/preferences.db. Use preferences to save MOD settings, character state, or any data that should survive restarts.
Import
import { preferences } from "@hmcs/sdk";
Functions
| Function | Description |
|---|---|
| list | Returns all stored key names |
| load | Retrieves the value for a key |
| save | Stores any JSON-serializable value under the given key |