@extra-version/next.min
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.15 • Public • Published

    Gives the next version. 🏃 📼 📦 🌔 📒

    This is part of package extra-version.

    This is browserified, minified version of @extra-version/next.
    It is exported as global variable version_next.
    CDN: unpkg, jsDelivr.

    version.next(x, [s], [fn]);
    // x:  a version
    // s:  version step (0.0.1)
    // fn: next function (xv, sv)
    const version = require('extra-version');
    
    var x = version.from('1.2');
    var y = version.next(x, version.PATCH);
    y.toString();
    // '1.2.1'
    
    var y = version.next(x, version.MAJOR);
    y.toString();
    // '2.0.0'
    
    var x = version.from('1.2-1.1');
    var s = version.from('0.0-1.0');
    var y = version.next(x, s);
    y.toString();
    // '1.2.0-2.0'
    
    var s = version.from('2.0-0.0');
    var y = version.next(x, s);
    y.toString();
    // '3.0.0-0.0'

    references

    Install

    npm i @extra-version/next.min

    DownloadsWeekly Downloads

    15

    Version

    1.0.15

    License

    MIT

    Unpacked Size

    27.2 kB

    Total Files

    34

    Last publish

    Collaborators

    • wolfram77