I wrote a small utility module Konfy, which allows you to configure your node and/or (browserified) webapps easily.
It was aimed to fulfil following requirements:
- API symmetry in both node and the browser.
- Extremely easy setup.
- Allows the use of ENV variables.
- Variable interpolation of the configuration data.
- Easy integration with existing build tools and package managers: Grunt, Gulp, Broccoli, Bower et cetera.
Find the source, documentation and examples on https://github.com/creynders/konfy