function assetName
assetName(
flavor: "sea" | "deno",
platform?: NodeJS.Platform,
arch?: string
): string | null

The release asset that replaces a running binary of this flavor, or null when this platform has no published build — the SEA matrix covers three targets, the deno one five.

import * as Release from './release.ts';

Release.assetName('deno', 'linux', 'arm64'); // 'qunitx-deno-linux-arm64.tar.gz'
Release.assetName('sea', 'linux', 'arm64'); // null — no SEA is built for it

Parameters

flavor: "sea" | "deno"
optional
platform: NodeJS.Platform = [process.platform]
optional
arch: string = [process.arch]

Return Type

string | null

Usage

import { assetName } from "lib/commands/upgrade/release.ts";