loadConfig
@totemsdk/pear / loadConfig
Function: loadConfig()
loadConfig(
appName,configPath?):Promise<AppConfig>
Load app configuration.
Resolution order:
globalThis.Pear.config— Pear-runtime-injected config objectpear://config/<appName>— looked up inglobalThis.Pear.storage(Pear's local persistent KV store for the app)configPath— JSON file on disk (bare-fs → node:fs fallback)- Default:
{ appName }
Parameters
appName
string
configPath?
string
Returns
Promise<AppConfig>