mirror of
https://github.com/java-james/flutter_dotenv.git
synced 2025-07-15 05:53:52 +08:00
dotenv
Load environment variables at runtime from a .env
file.
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
- bkeepers/dotenv (ruby)
- motdotla/dotenv (node)
- theskumar/python-dotenv (python)
- joho/godotenv (golang)
- slapresta/rust-dotenv (rust)
- chandu/dotenv (c#)
- tpope/lein-dotenv, rentpath/clj-dotenv (clojure)
- mefellows/sbt-dotenv (scala)
- greenspun/dotenv (half of common lisp)
Languages
C++
33.4%
Dart
31.6%
CMake
27.3%
Swift
2.4%
C
2%
Other
3.3%