function getDependencyURL ({ repositoryURL, dependency }) {
  // githubURL is an object!
  const githubURL = url.parse(
    githubFromGit(repositoryURL) || ''
  )
  if (dependency && !githubURL.href) {
    return `https://www.npmjs.com/package/${dependency}`
  }
  return githubURL
}
function getDependencyURL ({ repositoryURL, dependency }) {
  
  const githubURL = url.parse(
    githubFromGit(repositoryURL) || ''
  )
  if (dependency && !githubURL.href) {
    return `https:
  }
  return githubURL
}
function getDependencyURL ( { repositoryURL , dependency } ) { // githubURL is an object! const githubURL = url . parse ( githubFromGit ( repositoryURL ) || '' ) if ( dependency && ! githubURL . href ) { return ` ${ dependency } ` } return githubURL }
returns a url object if you pass in a GitHub repositoryURL, returns a string with an npm URL if you just pass in a dependency name
returns a url object if you pass in a GitHub repositoryURL returns a string with an npm URL if you just pass in a dependency name