egg-version-compare
v1.0.2
Published
Comparator to determine if a version is less than, equivalent to, or greater than another version
Downloads
14
Maintainers
Readme
Comparator to determine if a version is less than, equivalent to, or greater than another version
Usage
import versionCompare from 'egg-version-compare'
console.log(['1.1', '2', '1.0'].sort(versionCompare))
// 1.0, 1.1, 2
npm