is-semver-static
v1.0.1
Published
Check if a version is a semver range or a static version
Downloads
8
Maintainers
Readme
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/[email protected]"></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.