prc b6c02717e6 Upload complete no-internet building environment. | 1 year ago | |
---|---|---|
.. | ||
README.md | 1 year ago | |
index.js | 1 year ago | |
package.json | 1 year ago |
Compare version numbers.
$ npm install --save compare-version
$ component install kevva/compare-version
$ bower install --save compare-version
var compareVersion = require('compare-version');
compareVersion('1.11.0', '1.11.0'); // => 0
compareVersion('1.11.0', '1.2.9'); // => 1
compareVersion('1.11.3', '1.11.25'); // => -1