Skip to main content

Module env

Module env 

Source
Expand description

Our own .env loader.

Supports KEY=value, export KEY=value, # comments, single/double quoted values (with escapes inside double quotes), and ${VAR} interpolation against values already loaded or present in the process environment.

Functionsยง

env_or
Read an environment variable, falling back to a default.
load
Load a .env file and export every entry into the process environment.
parse
Parse .env text into ordered key/value pairs.