code: function resolveFilepath(filepath, baseDir) {
      if (baseDir) {
          var base = normalizeFilepath(path.resolve(baseDir));
          filepath = removePrefixFromFilepath(filepath, base);
          filepath = removePrefixFromFilepath(filepath, fs.realpathSync(base));
      }
      filepath.replace(/^\//, "");
      return filepath;
  }
docs: Resolves a filepath
  @param {string} filepath Path resolve
  @param {string} baseDir Base directory to resolve the filepath from
  @returns {string} Resolved filepath