| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > JsonFile > save
Saves the file to disk. Returns false if nothing was written due to options.onlyIfChanged.
Signature:
static save(jsonObject: JsonObject, jsonFilename: string, options?: IJsonFileSaveOptions): boolean;|
Parameter |
Type |
Description |
|---|---|---|
|
jsonObject |
the object to be saved | |
|
jsonFilename |
string |
the file path to write |
|
options |
(Optional) other settings that control how the file is saved |
Returns:
boolean
false if ISaveJsonFileOptions.onlyIfChanged didn't save anything; true otherwise