MappendFile
Bun

method

fs.promises.FileHandle.appendFile

data: string | ArrayBufferView<ArrayBufferLike> | Iterable<unknown, any, any> | AsyncIterable<unknown, any, any>,
options?: null | BufferEncoding | ObjectEncodingOptions & Abortable
): 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().

@returns

Fulfills with undefined upon success.

Referenced types

interface ObjectEncodingOptions