Function appendFile

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

    Parameters

    Returns void

    encoding Defaults to 'utf8'.

    mode Defaults to 0644.

    flag Defaults to 'a'.

  • Parameters

    • filename: PathLike
    • data: FileContents
    • Optionaloptions: EncodingOption & { mode?: Mode | undefined; flag?: OpenMode | undefined; }
    • Optionalcb: Callback

    Returns void

  • Parameters

    Returns void