dotenv

Load environment variables at runtime from a .env file.

Pub Version Build Status Documentation

usage

See documentation.

cli

Get the latest:

$ pub global activate dotenv

Run:

$ pub run dotenv      # load a file and print the environment to stdout
$ pub run dotenv:new  # create the `.env` file and add it to `.gitignore`

limitations

Variable substitution and character escaping is a work in progress. Some cases don't work yet. Pull requests gleefully considered.

prior art

Libraries

dotenv

Loads environment variables from a .env file.