Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kd_clients/GitHubClients/mod.ts>ReleaseClient#downloadAssetById

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

Downloads an asset with an id that matches the given assetId to the given dirPath.

Parameters

assetId: number

The id of the asset to download.

dirPath: string

The directory path to download the asset to.

fileName: string

The name of the file when downloaded.

optional
overwrite: boolean

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

Returns

Promise<void>