MCPcopy
hub / github.com/callstack/agent-device / buildPrimaryEnvVarName

Function buildPrimaryEnvVarName

src/utils/source-value.ts:15–20  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

13const BOOLEAN_FALSE_VALUES = new Set(['0', 'false', 'no', 'off']);
14
15export function buildPrimaryEnvVarName(key: string): string {
16 return `AGENT_DEVICE_${key
17 .replace(/([A-Z])/g, '_$1')
18 .replace(/[^A-Za-z0-9_]/g, '_')
19 .toUpperCase()}`;
20}
21
22export function parseSourceValue(
23 definition: SourceValueDefinition,

Callers 3

getRemoteConfigEnvNamesFunction · 0.90
buildOptionSpecsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected