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:

ParameterTypeDescription
fileTFileThe file
datastringThe new file content
options?DataWriteOptions | undefined(Optional)

Returns: Promise<void>

Since: 0.9.7