module.exports = packagePage

var LRU = require("lru-cache")
, regData = new LRU(10000)
, marked = require("marked")
, callresp = require("cluster-callresp")
, crypto = require("crypto")
, fs = require('fs')


function packagePage (req, res) {
  var name = req.params.name
  , version = req.params.version || 'latest'

  req.model.load('myprofile', req)
  req.model.load('package', req.params)
  req.model.end(function (er, m) {
    if (er) return res.error(er)
    if (!m.package) return res.error(404)
    var locals = { package: m.package, profile: m.myprofile }
    res.template("package-page.ejs", locals)
  })
}

@@ -27,188 +27,8 @@
 ge%0A%0A
-var LRU = require(%22lru-cache%22)%0A, regData = new LRU(10000)%0A, marked = require(%22marked%22)%0A, callresp = require(%22cluster-callresp%22)%0A, crypto = require(%22crypto%22)%0A, fs = require('fs')%0A%0A%0A
 func

remove unused code