Denis 346b78aee1 first commit %!s(int64=2) %!d(string=hai) anos
..
lib 346b78aee1 first commit %!s(int64=2) %!d(string=hai) anos
CHANGELOG.md 346b78aee1 first commit %!s(int64=2) %!d(string=hai) anos
LICENSE 346b78aee1 first commit %!s(int64=2) %!d(string=hai) anos
README.md 346b78aee1 first commit %!s(int64=2) %!d(string=hai) anos
package.json 346b78aee1 first commit %!s(int64=2) %!d(string=hai) anos

README.md

@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.