MCPcopy Create free account
hub / github.com/Noumena-Network/code / hasNodeOption

Function hasNodeOption

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

Source from the content-addressed store, hash-verified

52 * Splits on whitespace and checks for exact match to avoid false positives.
53 */
54export function hasNodeOption(flag: string): boolean {
55 const nodeOptions = process.env.NODE_OPTIONS
56 if (!nodeOptions) {
57 return false
58 }
59 return nodeOptions.split(/\s+/).includes(flag)
60}
61
62export function isEnvTruthy(envVar: string | boolean | undefined): boolean {
63 if (!envVar) return false

Callers 2

getCertEnvVarTelemetryFunction · 0.85
caCerts.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected