The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
Describe the improvement you'd like
Add a shared-library @medic/environment that processes environment variables and exports parsed / generic data to be reused.
Describe the issue We have some duplicate code accessing
process.env.COUCH_URL
: https://github.com/search?q=repo%3Amedic%2Fcht-core+COUCH_URL+language%3AJavaScript+NOT+path%3A%2F%5Escripts%5C%2F%2F&type=code&l=JavaScriptDescribe the improvement you'd like Add a shared-library @medic/environment that processes environment variables and exports parsed / generic data to be reused.
Describe alternatives you've considered None.