Check if a version is a semver range or a static version
$ npm install is-semver-static
or
<script src="https://cdn.jsdelivr.net/npm/is-semver-static@1.0.0"></script>
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
Copyright (c) 2017 Martin Kolárik. Released under the MIT license.