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

x/kd_clients/mod.ts>ReleaseClient#assetExists

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

Returns a value indicating whether a release with an id or tag matches the given releaseIdOrTag, and a release asset with an id or name matches the given assetIdOrName.

Parameters

releaseIdOrTag: number | string

The release id or tag name.

assetIdOrName: number | string

The asset id or name.

Returns

Promise<boolean>

True if the asset exists, otherwise false.