MCPcopy Create free account
hub / github.com/chhoumann/quickadd / parseBooleanFlag

Function parseBooleanFlag

src/utils/pipeSyntax.ts:24–29  ·  view source on GitHub ↗
(value?: string)

Source from the content-addressed store, hash-verified

22}
23
24export function parseBooleanFlag(value?: string): boolean {
25 if (!value) return true;
26 const normalized = value.trim().toLowerCase();
27 if (["false", "no", "0", "off"].includes(normalized)) return false;
28 return true;
29}
30
31/**
32 * Pulls bare flag parts (an entire pipe part equal to the flag word, trimmed,

Callers 3

parseOptionsFunction · 0.90
parseMethod · 0.90
parseVDateOptionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected