MCPcopy Index your code
hub / github.com/ScrapeGraphAI/just-scrape / parseIntArg

Function parseIntArg

src/lib/parse.ts:12–18  ·  view source on GitHub ↗
(raw: string, field: string, out: Logger)

Source from the content-addressed store, hash-verified

10}
11
12export function parseIntArg(raw: string, field: string, out: Logger): number {
13 const n = Number(raw);
14 if (!Number.isFinite(n)) {
15 out.error(`--${field}: expected a number, got "${raw}"`);
16 }
17 return n;
18}

Callers 6

extract.tsFile · 0.85
history.tsFile · 0.85
scrape.tsFile · 0.85
crawl.tsFile · 0.85
search.tsFile · 0.85
monitor.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected