Skip to main content

getProcessEnvironmentValue

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/runtime/processEnvironment / getProcessEnvironmentValue

Function: getProcessEnvironmentValue()

getProcessEnvironmentValue(name: string): string | undefined

Defined in: utils/runtime/processEnvironment.ts:29

Reads process environment values through a defensive runtime boundary.

Renderer contexts, tests, and browser-like sandboxes may not expose a runtime process object or process environment. Direct process.env?.FOO access still throws when process itself is missing, so renderer-safe code should use this helper instead.

Parameters​

name​

string

Returns​

string | undefined