VertxDev/node-require-directory — pull request #1 by nuvoltadmin (2014-03-12 03:49:37+00:00)
Title: pass 2 additional parameters to callback : name and filename

In addition to the resolved module, you can get access to the key that will be used in the resulting hash as well as the original filename.
I needed these extra parameters in the callback and I think they might be useful to others. They are optional, so they don't break any existing code.