Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 563 Bytes

getEnvVariable.md

File metadata and controls

27 lines (14 loc) · 563 Bytes

@ai16z/eliza v0.1.5-alpha.3 / getEnvVariable

Function: getEnvVariable()

getEnvVariable(key, defaultValue?): string | undefined

Gets a specific environment variable

Parameters

key: string

The environment variable key

defaultValue?: string

Optional default value if key doesn't exist

Returns

string | undefined

The environment variable value or default value

Defined in

packages/core/src/settings.ts:103