URI::V...e::Util(3pm)

πŸ“¦ version 2.25, in ubuntu resolute, ubuntu stonking

πŸ¦‹ URI::VersionRange::Util β€” the manual page, but make it cute

okay so bestie, gather round, because this one is URI::V...e::Util(3pm) from the User Contributed Perl Documentation, and it's literally the little helper module that does the behind-the-scenes magic for URI::VersionRange. no cap.


✨ NAME ✨

URI::VersionRange::Util β€” the utility squad for URI::VersionRange πŸ’…


🌸 SYNOPSIS 🌸

use URI::VersionRange::Util qw(native_range_to_vers);

$vers = native_range_to_vers('npm', '~1.6.5 || >=1.7.2'); # vers:npm/>=1.6.5|<1.7.0|>=1.7.2

πŸ’– DESCRIPTION πŸ’–

URL::VersionRange::Util is the utility package for URL::VersionRange.

(it's giving support-system energy, and honestly? obsessed.)

  • $string = native_range_to_vers($scheme, $native_range) β€” takes that native range string you handed it and hands you back the matching VERS string. conversion arc, main character moment.
$vers = native_range_to_vers('npm', '~1.6.5 || >=1.7.2'); # vers:npm/>=1.6.5|<1.7.0|>=1.7.2

these are the native range schemes it's got your back on, fr fr:

  • conan
  • gem
  • nginx
  • npm
  • nuget
  • raku
  • semver
for any other scheme, native_range_to_vers will still try to convert the native range string into a VERS string, but ngl it may not work perfectly. it's doing its best πŸ’€

πŸŽ€ Version compare utility πŸŽ€

$int = version_compare($scheme, $a, $b)
$int = generic_version_compare($a, $b)
$int = semver_version_compare($a, $b)

🧚 Semver utility 🧚

$string = hash_to_semver(%hash)
$bool = is_semver($string)
$string = normalize_semver($string)
%hash = parse_semver($string)

🫢 SUPPORT 🫢

πŸ› Bugs / Feature Requests πŸ›

found a bug? need a feature? please report any bugs or feature requests through the issue tracker at <https://github.com/giterlizzi/perl-URI-PackageURL/issues>. you'll get notified automatically about any progress on your issue, so you're never left on read. πŸ’Œ

πŸ“¦ Source Code πŸ“¦

this is open source software, bestie. the code repository is right there for public review and contribution under the terms of the license.

<https://github.com/giterlizzi/perl-URI-PackageURL>

git clone https://github.com/giterlizzi/perl-URI-PackageURL.git

πŸ‘‘ AUTHOR πŸ‘‘

  • Giuseppe Di Terlizzi <gdt@cpan.org>

this software is copyright (c) 2022-2026 by Giuseppe Di Terlizzi.

it's free software β€” you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. iconic behavior, honestly.


and that's the whole page, periodt πŸ’–βœ¨πŸŽ€πŸ¦‹

cute little sign-off: this was rendered from perl v5.40.1, dated 2026-01-31, and yes the page title really is URI::V...e::Util(3pm) β€” she's mysterious, she's abbreviated, she ate. 🌸🫢

πŸ“¦ where this page comes from