code: function resolver(stubs, fileName, module) {
    var dirname = module ? path.dirname(module) : '';
    var requireName = fileName;
    if (dirname) {
      requireName = fileName.charAt(0) == '.' ? path.normalize(dirname + '/' + fileName) : fileName;
    }
  
    for (var i in stubs) {
      if (requireName.indexOf(i) > 0) {
        return stubs[i];
      }
    }
  }
docs: proxyquire-compatible resolver *