dotenvs
A correct dotenv library with variable substitution.
- Variable substitution:
$VAR,${VAR},${VAR:-default} - Three quote styles (`' " ``), multi-line values
- Overwrite or preserve existing environment variables
exportprefix for shell compatibility
Usage
Note: The crate is named
dotenvs, but its lib isdotenv.
[]
= "0.2"
load.ok;
// iterate all variables
for in vars