MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / hasNodeOption

Function hasNodeOption

source code/utils/envUtils.ts:26–32  ·  view source on GitHub ↗
(flag: string)

Source from the content-addressed store, hash-verified

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

Callers 2

getCertEnvVarTelemetryFunction · 0.85
caCerts.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected