flesler/config-node — pull request #2 by aexmachina (2014-05-09 08:39:25+00:00)
Title: Change to merge data from config file into config object

I have a `common.json` config file that contains values that are hashes, and when I load the `development.json` config file, these hashes are overwritten rather than merged. This change merges the data from the config file into the config object so that hashes aren't overwritten.

I've used `object-extend` module, but I can copy the merge function in if you don't want the dependancy.

I initially tried to do this outside the module, but it's a bit clumsy because I had to `deepClone()` the common config in order to merge it with the environment config.