Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

exact-version

bendrucker5.5kMIT1.0.2

Detect if a version string is an exact version and not a range

semver, version, exact

readme

exact-version Build Status

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