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:

Parameter Type Description
path string Full path to config file.
data object Data to write.
pretty? boolean | undefined Whether to insert tabs or spaces.

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