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