exact-version
v1.0.2
Published
Detect if a version string is an exact version and not a range
Downloads
2,872
Readme
exact-version
Detect if a version string is an exact version and not a range
Install
$ npm install --save exact-version
Usage
var exactVersion = require('exact-version')
exactVersion('4.0.0')
//=> true
exactVersion('~4.0.0')
//=> false
API
exactVersion(version)
-> boolean
version
Required
Type: string
A semver range / version.
License
MIT © Ben Drucker