The object to serialize and write to the file
The path where the JSON file will be written
Optionaloptions: WriteObjectToFileOptionsOptional configuration.
Options for the writeObjectToFile function.
Optionalcompressed?: booleanWhen true, remove whitespace from seralized object.
OptionalexportName?: stringWhen provided, creates an export with this name. Should be used only for .ts/.js files.
Optionallog?: booleanWrite a message to the command line.
Writes a JavaScript object to a JSON file.