writeFile

source

writeFile(path: PathOrFileDescriptor, data: string | ArrayBufferView, options: WriteFileOptions): Promise<void>source

Asynchronously writes data to a file, replacing the file if it already exists.