Skip to content

A semantic version comparison tool. Provides size validation for any semantic version, which is useful for client and resource platform updates, releases, and validation

License

Notifications You must be signed in to change notification settings

stevenleep/comparison

Repository files navigation

https://stevenleep.github.io/comparison

Feature

A semantic version comparison tool

You want to know if a version is greater than another version? This tool is for you!
Usage Scenarios:

  • App Update:you are developing an app and need to check if it needs to be updated!
  • Dependency Update...
  • A version management platform for file systems

Install

pnpm install @renovator/version

Features

API

  • API Documents

    import { compare } from "@renovator/version";
    
    const version1 = "1.0.0";
    const version2 = "2.0.0";
    
    const result = compare(version1, version2);
    result.isGreater; // false
    result.status; // negative
  • the comparison of the version is only one of the application scenarios. Parser at the bottom only provides the ability to install specific characters split. You can expand a lot of things based on this (depending on your own interests and ideas)

About

A semantic version comparison tool. Provides size validation for any semantic version, which is useful for client and resource platform updates, releases, and validation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published