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

Function parseToolVersion

packages/cli/src/browser/preflight.ts:47–50  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

45}
46
47export function parseToolVersion(raw: string): string {
48 const m = raw.match(/(ffmpeg|ffprobe)\s+version\s+([\d][\d.\-\w]*)/i);
49 return m ? `${m[1]} ${m[2]}` : raw.trim();
50}
51
52function configuredMissingDetail(envName: string): string | undefined {
53 const configured = process.env[envName]?.trim();

Callers 3

readToolVersionFunction · 0.85
preflight.test.tsFile · 0.85
doctor.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected