MCPcopy Create free account
hub / github.com/ScrapeGraphAI/just-scrape / buildBaseFormat

Function buildBaseFormat

src/lib/formats.ts:16–33  ·  view source on GitHub ↗
(f: BaseFormat, mode: HtmlMode = "normal")

Source from the content-addressed store, hash-verified

14export type HtmlMode = "normal" | "reader" | "prune";
15
16export function buildBaseFormat(f: BaseFormat, mode: HtmlMode = "normal"): FormatConfig {
17 switch (f) {
18 case "markdown":
19 return { type: "markdown", mode };
20 case "html":
21 return { type: "html", mode };
22 case "screenshot":
23 return { type: "screenshot" };
24 case "branding":
25 return { type: "branding" };
26 case "links":
27 return { type: "links" };
28 case "images":
29 return { type: "images" };
30 case "summary":
31 return { type: "summary" };
32 }
33}

Callers 3

scrape.tsFile · 0.85
crawl.tsFile · 0.85
buildFormatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected