docs: function addToQueue(queue, packageInfo) {
    var exists;
  
    function matchesVersion(version, range) {
      var matches;
  
      try {
        matches = semver.satisfies(packageInfo.version, item.version);
      }
      catch (err) {
        matches = false;
      }
  
      return matches;
    }
  
    exists = queue.some(function(item) {
      var matches = false;
  
      if (item.name === packageInfo.name) {
        matches = matchesVersion(packageInfo.version, item.version);
      }
  
      return matches;
    });
  
    if (!exists) {
      queue.push(packageInfo);
    }
  }