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

Function tmpFile

packages/cli/src/whisper/normalize.test.ts:16–23  ·  view source on GitHub ↗
(name: string, content: string)

Source from the content-addressed store, hash-verified

14import { detectSpeechOnset } from "./transcribe.js";
15
16function tmpFile(name: string, content: string): string {
17 const dir = join(tmpdir(), `hf-normalize-test-${Date.now()}`);
18 mkdirSync(dir, { recursive: true });
19 dirs.push(dir);
20 const path = join(dir, name);
21 writeFileSync(path, content);
22 return path;
23}
24
25let dirs: string[] = [];
26

Callers 1

normalize.test.tsFile · 0.70

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected