Skip to content

Vault.modify method

Vault › modify

Official

Modify the contents of a plaintext file.

Signature:

modify(file: TFile, data: string, options?: DataWriteOptions | undefined): Promise<void>

Parameters:

Parameter Type Description
file TFile The file
data string The new file content
options? DataWriteOptions | undefined (Optional)

Returns: Promise<void>

Since: 0.9.7