Navel Pondering Mantra

    is-semver-static

    1.0.1 • Public • Published

    is-semver-static

    Check if a version is a semver range or a static version

    Installation

    $ npm install is-semver-static
    

    or

    <script src="https://cdn.jsdelivr.net/npm/is-semver-static@1.0.0"></script>
    

    Usage

    const isSemverStatic = require('is-semver-static'); // or window.isSemverStatic
    
    isSemverStatic('1.0.0'); // true
    isSemverStatic('=1.0.0'); // true
    isSemverStatic('v1.0.0'); // true
    isSemverStatic('1.0.0-rc1'); // true
    isSemverStatic('>1.0.0'); // false
    isSemverStatic('^1.0.0'); // false
    isSemverStatic('~1.0.0'); // false
    isSemverStatic('1'); // false

    License

    Copyright (c) 2017 Martin Kolárik. Released under the MIT license.

    Install

    npm i is-semver-static

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.13 kB

    Total Files

    6

    Last publish

    Collaborators

    • martin-kolarik