compare-version
v0.1.2
Published
Compare semver version numbers
Downloads
1,861,506
Readme
compare-version
Compare version numbers.
Install
$ npm install --save compare-version
$ component install kevva/compare-version
$ bower install --save compare-version
Usage
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