EVENTS

The xrequire main export object mixes in methods from an EventEmitter and will emits a
require event whenever a file is about to be require-ed. You can add a listener to
this event to adds logging, for example.

var xrequire =require('xrequire');

xrequire.on('require',function(filePath,name){

});

The handler is given two arguments, the resolved path of the file being required and the
extracted name that would be used as key of the resulting hash.