Socket
Socket
Sign inDemoInstall

bin-version-check

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bin-version-check - npm Package Compare versions

Comparing version 5.1.0 to 6.0.0

4

index.js
import semver from 'semver';
import binaryVersion from 'bin-version';
import binaryVersion from 'binary-version';
import semverTruncate from 'semver-truncate';

@@ -20,5 +20,5 @@

const error = new Error(`${binary} ${version} doesn't satisfy the version requirement of ${semverRange}`);
const error = new Error(`${binary} ${version} does not satisfy the version requirement of ${semverRange}`);
error.name = 'InvalidBinaryVersion';
throw error;
}
{
"name": "bin-version-check",
"version": "5.1.0",
"version": "6.0.0",
"description": "Check whether a binary version satisfies a semver range",

@@ -15,4 +15,5 @@ "license": "MIT",

"exports": "./index.js",
"sideEffects": false,
"engines": {
"node": ">=12"
"node": ">=18"
},

@@ -38,10 +39,10 @@ "scripts": {

"dependencies": {
"bin-version": "^6.0.0",
"semver": "^7.5.3",
"binary-version": "^7.1.0",
"semver": "^7.6.0",
"semver-truncate": "^3.0.0"
},
"devDependencies": {
"ava": "^4.3.3",
"xo": "^0.45.0"
"ava": "^6.1.2",
"xo": "^0.58.0"
}
}

@@ -9,9 +9,9 @@ # bin-version-check

```sh
npm install bin-version-check
```
$ npm install bin-version-check
```
## Usage
```
```console
$ curl --version

@@ -18,0 +18,0 @@ curl 7.30.0 (x86_64-apple-darwin13.0)

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