a simple javascript version checker.
yarn add js-version-check
import VersionCheck from 'js-version-check';
console.log(VersionCheck('1.0.12', '1.0.10')); // return 1
console.log(VersionCheck('1.0.12.1', '1.0.10.30')); // return 1
console.log(VersionCheck('1.0.12', '1.0.10.30')); // return 1
console.log(VersionCheck('1.0.1', '1.0.10')); // return -1
console.log(VersionCheck('1.0.1.20', '1.0.10')); // return -1
console.log(VersionCheck('1.0.1', '1.0.1')); // return 0
1.0.0.0.0...0