Vault.readConfigJson method
Vault › readConfigJson
Unofficial
Read theappearance.json config file from the vault and parse it as JSON.Signature:
readConfigJson(config: "appearance"): Promise<AppVaultAppearanceConfig | null | undefined>Parameters:
| Parameter | Type | Description |
|---|---|---|
| config | "appearance" | 'appearance'. |
Returns: Promise<AppVaultAppearanceConfig | null | undefined> — The appearance settings changed from their defaults, null if the file does not exist, or undefined if it could not be read or parsed.
Unofficial
Read a config file from the vault and parse it as JSON.Signature:
readConfigJson(config: string): Promise<null | object>Parameters:
| Parameter | Type | Description |
|---|---|---|
| config | string | Name of config file. |
Returns: Promise<null | object> — The parsed JSON object, or null if not found.