version-compare.js
v0.0.0
Published
Compare semver version numbers
Downloads
2,682
Readme
version-compare
Semver version comparer, inspired by https://github.com/kevva/compare-version, but it no longer appears to be maintained (and has disappeared from github).
Install
$ npm install --save version-compare.js
Usage
var compareVersion = require('version-compare');
compareVersion('1.11.0', '1.11.0'); // => 0
compareVersion('1.11.0', '1.2.9'); // => 1
compareVersion('1.11.3', '1.11.25'); // => -1
Testing
$ npm test
License
MIT license, keep calm and do whatever you want.