         console.log "#{pack.name.cyan}"
         items = []
         items.push(pack.version.yellow) if pack.version
-        items.push(pack.repository.underline) if pack.repository
+        if repository = @getRepository(pack)
+          items.push(repository.underline)
         items.push(pack.description.replace(/\s+/g, ' ')) if pack.description
         tree(items)
 

      callback("Missing required package name")
      return

    @getPackage packageName, (error, pack) ->
      if error?
        callback(error)
        return

    """
    options.alias('h', 'help').describe('help', 'Print this usage message')
    options.boolean('json').describe('json', 'Output featured packages as JSON array')

  getRepository: (pack) ->
    if repository = pack.repository?.url ? pack.repository
      repository.replace(/\.git$/, '')

  getPackage: (packageName, callback) ->
    auth.getToken (error, token) ->
