method promises.FileHandle.appendFile
Jump to headingFileHandle.appendFile(data: string | Uint8Array,options?: ()
| BufferEncoding
| null,): Promise<void>
Alias of filehandle.writeFile()
.
When operating on file handles, the mode cannot be changed from what it was set
to with fsPromises.open()
. Therefore, this is equivalent to filehandle.writeFile()
.
Parameters Jump to heading
Jump to headingdata: string | Uint8Array
optional
Jump to headingoptions: ()
| BufferEncoding
| null
Return Type Jump to heading
Promise<void>
Fulfills with undefined
upon success.