Muqriz 48f16bfc3e initail first | vor 4 Monaten | |
---|---|---|
.. | ||
README.md | vor 4 Monaten | |
index.js | vor 4 Monaten | |
package.json | vor 4 Monaten |
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