• Writes content to file at path.

    Parameters

    • path: string

      Path to the file to be written.

    • data: string | Buffer

      Content to be written.

    • options: WriteOptions = ...

      Options to write the file with (defaults to utf-8 encoding).

    Returns Promise<void>