Light Dark

Functions

get

fn (name: Str, default-value: Str): Str

Get environment variable name, or default-value if unset.

Example


api-url ::hot::env/get("API_URL", "https://localhost:8080")
debug ::hot::env/get("DEBUG", "false")

get-all

fn (): Map

Return a map of all environment variables.

Example


all-vars ::hot::env/get-all()
// {"PATH": "/usr/bin:...", "HOME": "/home/user", ...}