(paramName: string)
| 19 | * @returns The value of the environment variable or null if not present. |
| 20 | */ |
| 21 | export 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 | } |
no test coverage detected