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

Function buildFormats

src/commands/monitor.ts:28–37  ·  view source on GitHub ↗
(raw: string, onInvalid: (f: string) => never)

Source from the content-addressed store, hash-verified

26type Action = (typeof ACTIONS)[number];
27
28function buildFormats(raw: string, onInvalid: (f: string) => never): FormatConfig[] {
29 return raw
30 .split(",")
31 .map((f) => f.trim())
32 .filter(Boolean)
33 .map((f) => {
34 if (!BASE_FORMATS.includes(f as BaseFormat)) onInvalid(f);
35 return buildBaseFormat(f as BaseFormat);
36 });
37}
38
39export default defineCommand({
40 meta: {

Callers 1

monitor.tsFile · 0.85

Calls 1

buildBaseFormatFunction · 0.85

Tested by

no test coverage detected