MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / truthy

Function truthy

packages/core/analytics/src/analytics.ts:46–50  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

44// ---------------------------------------------------------------------------
45
46const truthy = (value: string | undefined): boolean => {
47 if (value === undefined) return false;
48 const normalized = value.trim().toLowerCase();
49 return normalized === "1" || normalized === "true" || normalized === "yes";
50};
51
52export const isAnalyticsDisabled = (
53 env: Readonly<Record<string, string | undefined>> = process.env,

Callers 1

isAnalyticsDisabledFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected