substack/node-confuse — pull request #2 by zzack (2012-07-12 16:55:46+00:00)
Title: Support for .js files and multiple files per directory

Let me know if there would be a better approach or if this is a bad idea for some reason.

Basically detects if the request file is a js file, and if so requires it and merges it (with deepmerge).

Also pushes files onto configFiles array, as to not return from for loop, thereby allowing multiple files per directory.