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

Function parseNum

packages/core/scripts/debug-timeline.ts:36–40  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

34};
35
36function parseNum(value: string | null | undefined): number | null {
37 if (value == null) return null;
38 const parsed = Number.parseFloat(String(value));
39 return Number.isFinite(parsed) ? parsed : null;
40}
41
42function parseArgs() {
43 const args = process.argv.slice(2);

Callers 4

parseArgsFunction · 0.70
extractWindowNumberFunction · 0.70
inferClipDurationFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected