Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kd_clients/mod.ts>ReleaseClient#downloadAllLatestReleaseAssets

Various HTTP clients for miscellaneous use.
Latest
method ReleaseClient.prototype.downloadAllLatestReleaseAssets
import { ReleaseClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.14/mod.ts";

Downloads all assets for the latest non-prerelease and non-draft release, to the given dirPath.

Parameters

dirPath: string

The directory path to download the assets to.

optional
overwrite: boolean

True to overwrite the file if it exists, otherwise false.

optional
onProgress: (assetId: number, filePath: string) => void

A callback function that is called when an asset is downloaded.

Returns

Promise<void>