MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / readToolVersion

Function readToolVersion

packages/cli/src/browser/preflight.ts:58–68  ·  view source on GitHub ↗
(binaryPath: string)

Source from the content-addressed store, hash-verified

56}
57
58function readToolVersion(binaryPath: string): string {
59 try {
60 const raw =
61 execFileSync(binaryPath, ["-version"], { encoding: "utf-8", timeout: 5000 }).split("\n")[0] ??
62 "";
63 const version = parseToolVersion(raw);
64 return version ? `${version} at ${binaryPath}` : binaryPath;
65 } catch {
66 return binaryPath;
67 }
68}
69
70function checkFFmpeg(): EnvironmentCheckOutcome {
71 const missingConfigured = configuredMissingDetail(FFMPEG_PATH_ENV);

Callers 2

checkFFmpegFunction · 0.85
checkFFprobeFunction · 0.85

Calls 1

parseToolVersionFunction · 0.85

Tested by

no test coverage detected