Skip to content

Vault.writeJson method

Vault › writeJson

Unofficial

Write a config file (full path) to disk.

Signature:

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

Parameters:

ParameterTypeDescription
pathstringFull path to config file.
dataobjectData to write.
pretty?boolean | undefinedWhether to insert tabs or spaces.

Returns: Promise<void>A promise that resolves when the JSON file is written.