code: function getModuleMapSync(dir) {
    var map = {};
  
    fs
      .readdirSync(dir)
      .filter(function(filename) {
        return filename !== 'index.js';
      })
      .forEach(function(filename) {
        var filePath = path.join(dir, filename);
        var Stats = fs.lstatSync(filePath);
        var isLink = Stats.isSymbolicLink();
        var isDir = Stats.isDirectory();
        var isFile = Stats.isFile();
        var isJS = filename.indexOf('.js') > -1;
  
        if (!isLink && isDir) {
          map[filename] = getModuleMapSync(filePath);
        }
  
        else if (!isLink && isFile && isJS) {
          var entityName = filename.replace('.js', '');
          map[entityName] = true;
        }
      });
  
    return map;
  }
docs: Maps a directory and generates the module interface map synchronously.
  @todo Make this asynchronous.
  
  @param  {dir}  dir  Absolute path to the directory.
  @return {Object}    Module interface map.