0.0.0 • Published 9 years ago

version-compare.js v0.0.0

Weekly downloads
209
License
MIT
Repository
github
Last release
9 years ago

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.