Optionalcb: CallbackAsynchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.
Optionalencoding: BufferEncodingOptionalcb: CallbackAsynchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.
Optionaloptions: WriteFileOptionsOptionalcb: Callback
Asynchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.