function satisfiesMajor(version, requirements) {
  let maxRequirement = true,
    minRequirement = true;

  if (requirements.min) {
    minRequirement = version[0] >= requirements.min.toString();
  }

  if (requirements.max) {
    maxRequirement = version[0] <= requirements.max.toString();
  }

  return maxRequirement && minRequirement;
}
Very straightforward function to check only if the version satisfies
the major version requirements

@param {String} version
@param {Object} requirements

@returns {Boolean}