filename or {FileHandle}
Optional
options: "fs".WriteFileOptionsAsynchronously 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()
).
v0.0.67
Fulfills with undefined
upon success.
filename or {FileHandle}
Optional
options: "fs".WriteFileOptionsGenerated using TypeDoc
Asynchronously append data to a file, creating the file if it does not yet exist.
data
can be a string or aBuffer
.If
options
is a string, then it specifies theencoding
.The
mode
option only affects the newly created file. Seefs.open()
for more details.The
path
may be specified as aFileHandle
that has been opened for appending (usingfsPromises.open()
).Since
v0.0.67
Returns
Fulfills with
undefined
upon success.