Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-version-matches

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-version-matches - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

index.mjs

18

package.json
{
"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 @@

&copy; 2018-19 Lloyd Brookes \<75pound@gmail.com\>.
&copy; 2018-21 Lloyd Brookes \<75pound@gmail.com\>.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc