MCPcopy
hub / github.com/d3/d3 / readMarkdownSource

Function readMarkdownSource

test/docs-test.js:62–64  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

60
61// In source files, ignore comments.
62async function readMarkdownSource(f) {
63 return (await readFile(f, "utf8")).replaceAll(/<!-- .*? -->/gs, "");
64}
65
66// Recursively find all md files in the directory.
67async function* readMarkdownFiles(root, subpath = "/") {

Callers 1

docs-test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected