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

Function truthy

packages/core/integrations-registry/src/registry.ts:30–34  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

28// ---------------------------------------------------------------------------
29
30const truthy = (value: string | undefined): boolean => {
31 if (value === undefined) return false;
32 const normalized = value.trim().toLowerCase();
33 return normalized === "1" || normalized === "true" || normalized === "yes";
34};
35
36export const isFetchDisabled = (
37 env: Readonly<Record<string, string | undefined>> = process.env,

Callers 1

isFetchDisabledFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected