@ai16z/eliza v0.1.6-alpha.4 / 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