Function appendFileSync

  • Asynchronously append data to a file, creating the file if it not yet exists.

    Parameters

    • filename: PathOrFileDescriptor
    • data: FileContents
    • _options: WriteFileOptions = {}

    Returns void

    encoding Defaults to 'utf8'.

    mode Defaults to 0644.

    flag Defaults to 'a+'.