code: function addPackage(packages, packageInfo) {
    var temp, name, version;
  
    name    = packageInfo.name;
    version = packageInfo.version;
  
    if (!packages[name]) {
      temp = {};
      temp[version] = packageInfo;
  
      packages[name] = temp;
    } else {
      // no duplicates
      if (!isDuplicate(packages[name], version)) {
        packages[name][version] = packageInfo;
      }
    }
  }
docs: Add the package:version pair to the packages object if the package doesn't exist
  or the version doesn't exist.
  
  @param {Object} packages - keys represent package names, subkeys represent versions
  @param {String} packageInfo - data retrieved from the NPM registry for a package