code: function _githubUrl (resolvedPackageRoot) {
    var { packageJson, relativeFile } = resolvedPackageRoot
    const url = repoWebUrl(packageJson && packageJson.repository && packageJson.repository.url)
    if (url && url.match(/github.com/)) {
      return `${url}/blob/v${packageJson.version}/${relativeFile}`
    }
  }
docs: Computes the github-url of a file based on the information retrieved by the {@link resolvePackageRoot}
  function. The code is extracted into a function because it is used in multiple places.
  @param {object} resolvedPackageRoot
  @param {object} resolvedPackageRoot.packageJson the contents of the package.json as javascript object
  @param {string} resolvePackageRoot.relativeFile the relative path of the file within the package
  @returns {string}
  @private