docs: function restrictedRequire(allow) {
      return function(name) {
          if ((name) && (typeof name === 'string') && (allow.indexOf(name) !== -1)) {
              return require(name);
          }
      };
  }