Anchorage API reference
    Preparing search index...
    • Boolean env var. Absent or empty => false (the flag is simply not set). The usual spellings parse case-insensitively (true/1/yes/on, false/0/no/off); any OTHER value logs a config-error and returns onInvalid — the caller states its fail-closed reading, because polarity decides it: for a kill switch (DEMO_DISABLED) the safe reading of DEMO_DISABLED=disable-now-please is true (demo dies), never "carry on as if unset" — an emergency control that only recognizes one literal silently no-ops in the incident it exists for.

      Parameters

      • raw: string | undefined
      • name: string
      • options: { onInvalid: boolean }

      Returns boolean