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:

ParameterTypeDescription
pathstringPath relative to vault root.
dataobjectData to write.
pretty?boolean | undefinedWhether to insert tabs or spaces.

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