UNPKG

934 BTypeScriptView Raw
1/// <reference types="node" />
2export declare class EnvironmentUtils {
3 /**
4 * Merge a given record of environment variables with the process environment variables.
5 * Empty string values will not be included in the final env.
6 * @param env desired environment to merge with `process.env`.
7 * @returns a normalized merged record of valid environment variables.
8 */
9 mergeProcessEnv(env?: Record<string, string | null>): Record<string, string>;
10 /**
11 * Normalize an environment record for a given OS.
12 *
13 * On Windows it will uppercase all keys.
14 *
15 * @param env Environment variables map to normalize.
16 * @param platform Platform to normalize for.
17 * @returns New object with normalized environment variables.
18 */
19 normalizeEnv<T>(env: Record<string, T>): Record<string, T>;
20 protected getPlatform(): NodeJS.Platform;
21}
22//# sourceMappingURL=environment-utils.d.ts.map
\No newline at end of file