I am happy to announce the release of confmgr. You may visit the repo, directly install its NPM package or follow me for a gentle introduction.
1. The problem There are several ways to manage various configurations in your NodeJS App. One of them is about using Environment Variables.
Invoking your index.js as follow:
MY_VAR1=42 node index.js makes MY_VAR1 available to your script with the following code:
Why another one? confmgr brings interesting features that are not available in libs. While focusing on ease of use, it brings features that no longer need to be part of your app such as:
Features at a glance type conversion (variables from ENV are always strings, confmgr converts them for you)