(name: string)
| 1 | export function getEnvVar(name: string): string | undefined { |
| 2 | // This could run in a non-Node.js environment (Bun, Deno, CF Worker, etc.), so don't just assume process.env is a thing |
| 3 | if (typeof process !== "undefined" && typeof process.env === "object" && process.env !== null) { |
| 4 | return process.env[name]; |
| 5 | } |
| 6 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…