node-version-matches
Advanced tools
Comparing version 2.0.1 to 3.0.0
{ | ||
"name": "node-version-matches", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "Returns true if the current node version matches the given semver expression", | ||
@@ -14,20 +14,22 @@ "repository": "https://github.com/75lb/node-version-matches", | ||
], | ||
"main": "./index.mjs", | ||
"exports": "./index.mjs", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=14" | ||
}, | ||
"files": [ | ||
"index.js" | ||
"index.mjs" | ||
], | ||
"scripts": { | ||
"test": "test-runner test.js", | ||
"cover": "nyc --reporter=text-lcov test-runner test.js | coveralls" | ||
"test": "test-runner test.mjs", | ||
"cover": "nyc --reporter=text-lcov test-runner test.mjs | coveralls" | ||
}, | ||
"devDependencies": { | ||
"coveralls": "^3.0.7", | ||
"test-runner": "^0.7.2" | ||
"coveralls": "^3.1.0", | ||
"test-runner": "^0.9.2" | ||
}, | ||
"dependencies": { | ||
"semver": "^6.3.0" | ||
"semver": "^7.3.5" | ||
} | ||
} |
@@ -1,5 +0,4 @@ | ||
[![view on npm](https://img.shields.io/npm/v/node-version-matches.svg)](https://www.npmjs.org/package/node-version-matches) | ||
[![npm module downloads](https://img.shields.io/npm/dt/node-version-matches.svg)](https://www.npmjs.org/package/node-version-matches) | ||
[![view on npm](https://badgen.net/npm/v/node-version-matches)](https://www.npmjs.org/package/node-version-matches) | ||
[![npm module downloads](https://badgen.net/npm/dt/node-version-matches)](https://www.npmjs.org/package/node-version-matches) | ||
[![Build Status](https://travis-ci.org/75lb/node-version-matches.svg?branch=master)](https://travis-ci.org/75lb/node-version-matches) | ||
[![Dependency Status](https://badgen.net/david/dep/75lb/node-version-matches)](https://david-dm.org/75lb/node-version-matches) | ||
[![Coverage Status](https://coveralls.io/repos/github/75lb/node-version-matches/badge.svg)](https://coveralls.io/github/75lb/node-version-matches) | ||
@@ -13,14 +12,14 @@ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard) | ||
```js | ||
> const nodeVersionMatches = require('node-version-matches') | ||
import nodeVersionMatches from 'node-version-matches' | ||
> // assuming we're using node version 10 | ||
> nodeVersionMatches('>=7.6.0') | ||
true | ||
// assuming we're using node version 10 | ||
console.log(nodeVersionMatches('>=7.6.0')) | ||
// true | ||
> nodeVersionMatches('<7.6.0') | ||
false | ||
console.log(nodeVersionMatches('<7.6.0')) | ||
// false | ||
> // optional: pass in a specific node version as the second arg. | ||
> nodeVersionMatches('<7.6.0', 'v4.0.0') | ||
true | ||
// optional: pass in a specific node version as the second arg. | ||
console.log(nodeVersionMatches('<7.6.0', 'v4.0.0')) | ||
// true | ||
``` | ||
@@ -34,2 +33,2 @@ | ||
© 2018-19 Lloyd Brookes \<75pound@gmail.com\>. | ||
© 2018-21 Lloyd Brookes \<75pound@gmail.com\>. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
7
3302
33
+ Addedsemver@7.6.3(transitive)
- Removedsemver@6.3.1(transitive)
Updatedsemver@^7.3.5