MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getEnv

Function getEnv

frontend/util/getenv.ts:21–31  ·  view source on GitHub ↗
(paramName: string)

Source from the content-addressed store, hash-verified

19 * @returns The value of the environment variable or null if not present.
20 */
21export function getEnv(paramName: string): string {
22 const win = getWindow();
23 if (win != null) {
24 return getApi().getEnv(paramName);
25 }
26 const proc = getProcess();
27 if (proc != null) {
28 return proc.env[paramName];
29 }
30 return null;
31}

Callers 2

isdev.tsFile · 0.90
endpoints.tsFile · 0.90

Calls 3

getWindowFunction · 0.85
getProcessFunction · 0.85
getApiFunction · 0.70

Tested by

no test coverage detected