mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-01 18:19:51 +00:00
9 lines
188 B
TypeScript
9 lines
188 B
TypeScript
/**
|
|
* Get environment variable or empty string.
|
|
* Used for easy mocking.
|
|
* @param key variable name
|
|
*/
|
|
export function getEnv(key: string): string {
|
|
return process.env[key] ?? '';
|
|
}
|