mergeNamespaces
mergeNamespaces(
raw,namespaces):Record<string,string|undefined>
Defined in: utils/filter-by-namespace.ts:40
Merge multiple namespace-filtered views of a raw env record.
Uses a cascade model — later entries win over earlier ones when the same key exists under multiple prefixes. Put broad/global namespaces first and project-specific overrides last, the same way you would layer CSS rules or Object.assign calls.
Parameters
Section titled “Parameters”Record<string, string | undefined>
namespaces
Section titled “namespaces”string[]
Returns
Section titled “Returns”Record<string, string | undefined>
Example
Section titled “Example”// HOLOCRON_DEBUG is the org-wide default; CLI_TEMPLATE_DEBUG overrides it.mergeNamespaces(raw, ["HOLOCRON", "CLI_TEMPLATE"])