MCPcopy
hub / github.com/claude-code-best/claude-code / hasNodeOption

Function hasNodeOption

src/utils/envUtils.ts:24–30  ·  view source on GitHub ↗
(flag: string)

Source from the content-addressed store, hash-verified

22 * Splits on whitespace and checks for exact match to avoid false positives.
23 */
24export function hasNodeOption(flag: string): boolean {
25 const nodeOptions = process.env.NODE_OPTIONS
26 if (!nodeOptions) {
27 return false
28 }
29 return nodeOptions.split(/\s+/).includes(flag)
30}
31
32export function isEnvTruthy(envVar: string | boolean | undefined): boolean {
33 if (!envVar) return false

Callers 3

envUtils.test.tsFile · 0.90
getCertEnvVarTelemetryFunction · 0.85
caCerts.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected