docs: function (pkg, cb) {
    var auto = npm.config.get("update-dependents")
    if (!auto) {
      autoUpdate = function (_, cb) { return cb() }
      return log.verbose(
        "update-dependents disabled by config", "update-dependents", cb)
    }
    pkg = pkg && pkg._data || pkg
    if (auto === "always") {
      return npm.commands["update-dependents"]([pkg], cb)
    }
    readInstalled(pkg.name, function (er, inst) {
      if (er) return cb(er)
      var versions = Object.keys(inst[pkg.name])
                     .filter(function (v) { return v !== pkg.version })
                     .sort(semver.sort)
        , maxHave = versions.pop()
      if (!maxHave) return cb()
      if (!semver.gt(pkg.version, maxHave)) return log.verbose(
        "downgrade, not updating dependencencies", "update-dependents", cb)
      npm.commands["update-dependents"]([pkg], cb)
    })
  }