Options for writing to a file.
Properties
Sets the option to allow creating a new file, if one doesn't already
exist at the specified path (defaults to true
).
optional
signal: AbortSignalAn abort signal to allow cancellation of the file write operation. If the signal becomes aborted the writeFile operation will be stopped and the promise returned will be rejected with an AbortError.