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

Function parseExportFormat

packages/cli/src/commands/transcribe.ts:134–143  ·  view source on GitHub ↗
(
  value: string | undefined,
  json: boolean,
)

Source from the content-addressed store, hash-verified

132}
133
134function parseExportFormat(
135 value: string | undefined,
136 json: boolean,
137): CaptionExportFormat | undefined {
138 if (!value) return undefined;
139 const normalized = value.toLowerCase();
140 if (normalized === "srt" || normalized === "vtt") return normalized;
141
142 failWith(`Unsupported caption export format: ${value}. Use srt or vtt.`, json);
143}
144
145// ---------------------------------------------------------------------------
146// Import existing transcript

Callers 1

runFunction · 0.85

Calls 1

failWithFunction · 0.85

Tested by

no test coverage detected