zibri
    Preparing search index...

    Class SemVerUtilitiesAbstract

    Encapsulates functionalities around handling semver versions.

    Index

    Constructors

    Methods

    • Compares the given versions and checks if the first one is bigger, equal or smaller than the second one.

      Parameters

      • v1: `${number}.${number}.${number}`

        The first version.

      • v2: `${number}.${number}.${number}`

        The second version to compare against.

      Returns "bigger" | "equal" | "smaller"

      'bigger', 'equal' or 'smaller'.

    • Checks whether the given value is a valid SemVer version.

      Parameters

      • value: string

        The value to check.

      Returns value is `${number}.${number}.${number}`

      True if the value is in the format "number.number.number", false otherwise.