downloadAsJson function presentation ✓ 100.0%

Last updated: 2026-03-02T13:35:57.087Z

Metrics

LOC: 10 Complexity: 1 Params: 1 Coverage: 100.0% (8/8 lines, 2x executed)

Signature

downloadAsJson(entries: LogEntry[]): : void

Source Code

  function downloadAsJson(entries: LogEntry[]): void {
    const json = JSON.stringify(entries, null, 2);
    const blob = new Blob([json], { type: "application/json" });
    const url = URL.createObjectURL(blob);
    const a = document.createElement("a");
    a.href = url;
    a.download = `fill-all-logs-${new Date().toISOString().slice(0, 19).replace(/:/g, "-")}.json`;
    a.click();
    URL.revokeObjectURL(url);
  }

No outgoing dependencies.

Impact (Incoming)

graph LR downloadAsJson["downloadAsJson"] render["render"] render -->|calls| downloadAsJson style downloadAsJson fill:#dbeafe,stroke:#2563eb,stroke-width:2px click downloadAsJson "b031a65522b26156.html" click render "80ece8fdb820f2e0.html"
SourceType
render calls