writeFile(path, data, options?): Promise<void>
Writes data to a file, replacing the file if it already exists.
Parameters
path
string
File path.
data
Data to write. Strings are encoded as UTF-8.
string | Uint8Array
options?
WriteFileOptions
Optional settings.
Returns
Promise<void>