Skip to content

Vault.readConfigJson method

Vault › readConfigJson

Unofficial

Read the appearance.json config file from the vault and parse it as JSON.

Signature:

readConfigJson(config: "appearance"): Promise<AppVaultAppearanceConfig | null | undefined>

Parameters:

ParameterTypeDescription
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:

ParameterTypeDescription
configstringName of config file.

Returns: Promise<null | object> — The parsed JSON object, or null if not found.