MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / injectEnv

Function injectEnv

src/utils/config.ts:20–22  ·  view source on GitHub ↗
(config: C, notFoundValue: any = "")

Source from the content-addressed store, hash-verified

18 * Does not mutate original object
19 */
20export async function injectEnv<C extends InjectableConfigType>(config: C, notFoundValue: any = "") {
21 return injectVariables(config, { env: process.env }, notFoundValue)
22}
23
24/**
25 * Deeply injects variables into a configuration object/string/json

Callers 1

config.spec.tsFile · 0.90

Calls 1

injectVariablesFunction · 0.85

Tested by

no test coverage detected