docs: function compare(name, version, query, normalizer) {
    // check for exact match with no version
    if (name === query) {
      return true;
    }
  
    // check for non-matching names
    if (!query.startsWith(name)) {
      return false;
    }
  
    // full comparison with version
    let range = query.slice(name.length);
    if (version) {
      range = normalizer ? normalizer(range) : range;
      return VersionRange.contains(range, version);
    }
  
    return false;
  }