MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / readProcessEnv

Function readProcessEnv

packages/node/src/index.ts:178–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176}
177
178function readProcessEnv(): ProcessEnv | null {
179 const processRef = (globalThis as { process?: { env?: Record<string, string | undefined> } })
180 .process;
181 if (!processRef || typeof processRef !== "object") return null;
182 const env = processRef.env;
183 if (!env || typeof env !== "object") return null;
184 return env;
185}
186
187function hasNoColorEnv(env: ProcessEnv | null): boolean {
188 if (!env) return false;

Callers 1

createNodeAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected