@spryker-lerna/has-npm-version

5.1.0 • Public • Published

@lerna/has-npm-version

Test if the current version of npm satisfies a given semver range

Usage

const { hasNpmVersion } = require("@lerna/has-npm-version");

// `npm --version` === 6.3.0
hasNpmVersion(">=6"); // => true

// `npm --version` === 5.6.0
hasNpmVersion(">=6"); // => false

// `npm --version` === 6.3.0
hasNpmVersion(">=5"); // => true

Install lerna for access to the lerna CLI.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.2.0289lerna-temp
5.1.01latest

Version History

VersionDownloads (Last 7 Days)Published
5.2.0289
5.1.01

Package Sidebar

Install

npm i @spryker-lerna/has-npm-version

Weekly Downloads

0

Version

5.1.0

License

MIT

Unpacked Size

6.3 kB

Total Files

5

Last publish

Collaborators

  • spryker-bot