Package Exports
- node-version-compare
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-version-compare) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-version-compare
a node module to compare semver versions
Install
npm install --save node-version-compareUsage
var compare = require('node-version-compare');
var result = compare('1.0.0', '1.0.1'); // result = -1
result = compare('10.2.0-alpha.1', '10.2.0-alpha.1'); // result = 0
result = compare('10.2.0-beta', '10.2.0-alpha'); // result = 1
result = compare('3.1.1-1', '3.1.1-2'); // result = -1