no-shot / env
1
import type { ParsedEnvs, ProcessEnv } from "../index";
2

3
/**
4
 * A utility function to assign Envs to `process.env`.
5
 *
6
 * @param config - ParsedEnvs
7
 */
8 1
export function assignEnvs(config: ParsedEnvs): ProcessEnv {
9 1
  return Object.assign(process.env, config) as ProcessEnv;
10
}
11

12 1
export default assignEnvs;

Read our documentation on viewing source code .

Loading