Scroll to navigation

VERS-TOOL(1p) User Contributed Perl Documentation VERS-TOOL(1p)

NAME

vers-tool - Version Range tool

SYNOPSIS

    vers-tool [OPTIONS]...STRING
    vers-tool STRING --contains STRING
    vers-tool [--help|--man|-v]
    Options:
          --help                    Brief help message
          --man                     Full documentation
          -v                        Print version
          --contains=VERSION        Check if a version is contained within a range
          --format=FORMAT           Output format
          --json                    JSON output format (--format=json)
      -h, --human-readable          Human-readable format (--format=human-readable)
    Examples:
    Decode a "vers" string:
        vers-tool "vers:cpan/1.00|>=2.00|<5.00" | jq
    Check if a version is contained within a range:
        vers-tool "vers:cpan/1.00|>=2.00|<5.00" --contains "2.20"
    Humanize "vers":
        vers-tool "vers:cpan/1.00|>=2.00|<5.00" --human-readable

DESCRIPTION

"vers-tool" Version Range tool

EXAMPLES

Decode a "vers" string:

    vers-tool "vers:cpan/1.00|>=2.00|<5.00" | jq

Check if a version is contained within a range:

    vers-tool "vers:cpan/1.00|>=2.00|<5.00" --contains "2.20"

Humanize "vers":

    vers-tool "vers:cpan/1.00|>=2.00|<5.00" --human-readable

AUTHOR

Giuseppe Di Terlizzi <https://metacpan.org/author/gdt>

COPYRIGHT AND LICENSE

Copyright © 2022-2025 Giuseppe Di Terlizzi <https://metacpan.org/author/gdt>

You may use and distribute this module according to the same terms that Perl is distributed under.

2025-11-03 perl v5.40.1