MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / fetchD3

Function fetchD3

website/src/lib/html-exporter.ts:3–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import JSZip from "jszip";
2
3async function fetchD3(): Promise<string> {
4 const res = await fetch('https://cdn.jsdelivr.net/npm/d3@7/dist/d3.min.js');
5 if (!res.ok) throw new Error('Failed to fetch d3 for bundling');
6 return res.text();
7}
8
9interface GraphNode {
10 id: string | number;

Callers 1

packageInteractiveExportFunction · 0.85

Calls 1

textMethod · 0.45

Tested by

no test coverage detected