appendFileAsync

external fun appendFileAsync(path: PathLike, data: String): Promise<Void>(source)
external fun appendFileAsync(path: PathLike, data: String, options: AppendFileAsyncOptions? = definedExternally): Promise<Void>(source)
external fun appendFileAsync(path: PathLike, data: String, options: BufferEncoding? = definedExternally): Promise<Void>(source)
external fun appendFileAsync(path: PathLike, data: Uint8Array<*>): Promise<Void>(source)
external fun appendFileAsync(path: PathLike, data: Uint8Array<*>, options: AppendFileAsyncOptions? = definedExternally): Promise<Void>(source)
external fun appendFileAsync(path: PathLike, data: Uint8Array<*>, options: BufferEncoding? = definedExternally): Promise<Void>(source)
external fun appendFileAsync(path: FileHandle, data: String): Promise<Void>(source)
external fun appendFileAsync(path: FileHandle, data: String, options: AppendFileAsyncOptions? = definedExternally): Promise<Void>(source)
external fun appendFileAsync(path: FileHandle, data: String, options: BufferEncoding? = definedExternally): Promise<Void>(source)
external fun appendFileAsync(path: FileHandle, data: Uint8Array<*>): Promise<Void>(source)
external fun appendFileAsync(path: FileHandle, data: Uint8Array<*>, options: AppendFileAsyncOptions? = definedExternally): Promise<Void>(source)
external fun appendFileAsync(path: FileHandle, data: Uint8Array<*>, options: BufferEncoding? = definedExternally): Promise<Void>(source)

Asynchronously append data to a file, creating the file if it does not yet exist. data can be a string or a Buffer.

If options is a string, then it specifies the encoding.

The mode option only affects the newly created file. See fs.open() for more details.

The path may be specified as a FileHandle that has been opened for appending (using fsPromises.open()).

Since

v10.0.0

Return

Fulfills with undefined upon success.

Parameters

path

filename or {FileHandle}