Not a Package Manager

    compare-version
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/compare-version package

    0.1.2 • Public • Published

    compare-version Build Status

    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

    License

    MIT License © Kevin Mårtensson

    Install

    npm i compare-version

    DownloadsWeekly Downloads

    279,891

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • kevva