Optional
cb: CallbackAsynchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.
Optional
encoding: BufferEncodingOptional
cb: CallbackAsynchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.
Optional
options: WriteFileOptionsOptional
cb: Callback
Asynchronously writes data to a file, replacing the file if it already exists.
The encoding option is ignored if data is a buffer.