• Downloads the content from the specified URL and attempts to save it as file.

    Parameters

    • arg: string | HttpsRequestOptions

      either The URL to request from or HttpsRequestOptions options.

    • Optional destinationFilePath: string

      Optional. The downloaded file path.

    Returns Promise<any>