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

x/kd_clients/mod.ts>ReleaseClient#downloadAllAssetsByReleaseName

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

Downloads all assets for a release with the given tagName to the given dirPath.

Parameters

name: string

The name of the release tag.

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>