Skip to content

wingtao/version-compare

Repository files navigation

version-compare

GitHub issues GitHub license npm

中文版

Usage

npm install version-compare

Example

import compare from 'version-compare'
compare('7.2.1', '7.6.1') // return false
compare('3.8.3', '2.6') // return true

Features

like the name, this library is used to compare the version,just be useful for the format like 'Major.Minor.Patch'.