filename or file descriptor
Asynchronously append data to a file, creating the file if it does not exist.
A path to a file. If a URL is provided, it must use the file: protocol.
If a file descriptor is provided, the underlying file will not be closed automatically.
The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
Asynchronously append data to a file, creating the file if it does not yet exist.
datacan be a string or aBuffer.The
modeoption only affects the newly created file. See open for more details.If
optionsis a string, then it specifies the encoding:The
pathmay be specified as a numeric file descriptor that has been opened for appending (usingfs.open()orfs.openSync()). The file descriptor will not be closed automatically.Since
v0.6.7