Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

software-version-compare

anujkumar.atma11ISC1.0.2

Compare between two standard software versions and display out the result.

software-version-compare, version-compare, compare-version, software-version

readme

Compares two software versions. Exports a function compareVersions and excepts two parameters(version1 and version2) in string format.

  • returns 0 if both are same
  • return 1 if v1 > v2
  • return -1 if v1 < v2
  • return false if invalid input except stringed version numbers