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 0.1.0 to 1.0.0

19

cli.js

@@ -9,14 +9,15 @@ #!/usr/bin/env node

console.log([
pkg.description,
'',
'Usage',
' $ bin-version-check <binary> <semver-range>',
' ' + pkg.description,
'',
'Example',
' $ curl --version',
' curl 7.30.0 (x86_64-apple-darwin13.0)',
' $ bin-version-check curl \'>=8\'',
' curl 7.30.0 does not satisfy the version requirement of >=8',
' Usage',
' bin-version-check <binary> <semver-range>',
'',
'Exits with code 0 if the semver range is satisfied and 1 if not'
' Example',
' $ curl --version',
' curl 7.30.0 (x86_64-apple-darwin13.0)',
' $ bin-version-check curl \'>=8\'',
' curl 7.30.0 does not satisfy the version requirement of >=8',
'',
' Exits with code 0 if the semver range is satisfied and 1 if not'
].join('\n'));

@@ -23,0 +24,0 @@ }

{
"name": "bin-version-check",
"version": "0.1.0",
"version": "1.0.0",
"description": "Check whether a binary version satisfies a semver range",
"license": "MIT",
"repository": "sindresorhus/bin-version-check",
"bin": {
"bin-version-check": "cli.js"
},
"author": {

@@ -15,2 +12,5 @@ "name": "Sindre Sorhus",

},
"bin": {
"bin-version-check": "cli.js"
},
"engines": {

@@ -40,5 +40,5 @@ "node": ">=0.10.0"

"dependencies": {
"bin-version": "^0.1.0",
"minimist": "^0.1.0",
"semver": "^2.3.0"
"bin-version": "^1.0.0",
"minimist": "^1.1.0",
"semver": "^3.0.1"
},

@@ -45,0 +45,0 @@ "devDependencies": {

@@ -43,12 +43,12 @@ # bin-version-check [![Build Status](https://travis-ci.org/sindresorhus/bin-version-check.svg?branch=master)](https://travis-ci.org/sindresorhus/bin-version-check)

Usage
$ bin-version-check <binary> <semver-range>
Usage
bin-version-check <binary> <semver-range>
Example
$ curl --version
curl 7.30.0 (x86_64-apple-darwin13.0)
$ bin-version-check curl '>=8'
curl 7.30.0 does not satisfy the version requirement of >=8
Example
$ curl --version
curl 7.30.0 (x86_64-apple-darwin13.0)
$ bin-version-check curl '>=8'
curl 7.30.0 does not satisfy the version requirement of >=8
Exits with code 0 if the semver range is satisfied and 1 if not
Exits with code 0 if the semver range is satisfied and 1 if not
```

@@ -55,0 +55,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