Skip to content

Vault.writePluginData method

Vault › writePluginData

Unofficial

Write a plugin config file (path relative to vault root) to disk.

Signature:

writePluginData(path: string, data: object, pretty?: boolean | undefined): Promise<void>

Parameters:

Parameter Type Description
path string Path relative to vault root.
data object Data to write.
pretty? boolean | undefined Whether to insert tabs or spaces.

Returns: Promise<void>A promise that resolves when the plugin data is written.