Some of you might remember my blog post about Node.js configuration patterns. As I have had to do quite a bit of Node.js development lately I have learned to appreciate the utility parse-env, a tool of mine provides. It merges file based configuration with environment based one and provides the results through an easy to use module.
I just made a couple of small changes that improve the utility of the tool further. Now it treats uppercase words properly (ie. instead of parseJSON -> PARSE_J_S_O_N you get PARSE_JSON). In addition it is possible to disable warnings about missing environment variables by setting MUTE_PARSE_ENV true.
Yeah, it's a tiny tool. But it can potentially simplify your Node.js development at least a little bit so give it a go!