MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / captureFileBaseName

Function captureFileBaseName

packages/client/src/app/AppShell.tsx:326–332  ·  view source on GitHub ↗
(
  simulator: SimulatorMetadata,
  artifact: "Recording" | "Screenshot",
)

Source from the content-addressed store, hash-verified

324}
325
326function captureFileBaseName(
327 simulator: SimulatorMetadata,
328 artifact: "Recording" | "Screenshot",
329): string {
330 const safeName = simulator.name.replace(/[^A-Za-z0-9._-]+/g, "-");
331 return `SimDeck ${artifact} - ${safeName || simulator.udid}`;
332}
333
334function formatElapsedRecordingTime(startedAt: number, now: number): string {
335 const elapsedSeconds = Math.max(0, Math.floor((now - startedAt) / 1000));

Callers 2

toggleSimulatorRecordingFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected