@stacksjs/launchpad
Version:
Like Homebrew, but faster.
17 lines • 535 B
TypeScript
/**
* Get the latest Bun version from GitHub API
*/
export declare function get_latest_bun_version(): Promise<string>;
/**
* Determine the appropriate Bun download URL based on the current platform and architecture
*/
export declare function get_bun_asset(version: string): BunAsset;
/**
* Download and install Bun
*/
export declare function install_bun(installPath: string, version?: string): Promise<string[]>;
declare interface BunAsset {
filename: string
url: string
}
declare type Platform = 'darwin' | 'linux' | 'win32'