UNPKG

tiny-runtime-injector

Version:

A library that helps you download complete, lightweight runtime environments like Node.js, Bun, uv, and Python. It's useful for including minimal runtimes when building applications like Electron.

19 lines (18 loc) 522 B
import { RuntimeOptions } from "./types.js"; export declare class RuntimeInjector { private options; private runtimeInfo; private config; constructor(options: RuntimeOptions); private updateResolvedVersion; private fetchLatestRtkRelease; private resolveRtkVersion; private isAlreadyInstalled; private downloadFile; private getProxyConfigForUrl; private getProxyOption; private extractTarGz; private extractZip; private cleanupRuntime; inject(): Promise<void>; }