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 global run dotenv:new  # create a `.env` file and add it to `.gitignore`
$ pub global run dotenv      # load the file and print the environment to stdout

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.