bin-version-check
Advanced tools
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 @@ |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3534
58
1
+ Addedarray-find-index@1.0.2(transitive)
+ Addedarray-uniq@1.0.3(transitive)
+ Addedbin-version@1.0.4(transitive)
+ Addedcamelcase@2.1.1(transitive)
+ Addedcamelcase-keys@2.1.0(transitive)
+ Addedcurrently-unhandled@0.4.1(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedfind-up@1.1.2(transitive)
+ Addedfind-versions@1.2.1(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhosted-git-info@2.8.9(transitive)
+ Addedindent-string@2.1.0(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedis-finite@1.1.0(transitive)
+ Addedis-utf8@0.2.1(transitive)
+ Addedload-json-file@1.1.0(transitive)
+ Addedloud-rejection@1.6.0(transitive)
+ Addedmap-obj@1.0.1(transitive)
+ Addedmeow@3.7.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addednormalize-package-data@2.5.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedparse-json@2.2.0(transitive)
+ Addedpath-exists@2.1.0(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-type@1.1.0(transitive)
+ Addedpify@2.3.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedread-pkg@1.1.0(transitive)
+ Addedread-pkg-up@1.0.1(transitive)
+ Addedredent@1.0.0(transitive)
+ Addedrepeating@2.0.1(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedsemver@3.0.1(transitive)
+ Addedsemver-regex@1.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedspdx-correct@3.2.0(transitive)
+ Addedspdx-exceptions@2.5.0(transitive)
+ Addedspdx-expression-parse@3.0.1(transitive)
+ Addedspdx-license-ids@3.0.20(transitive)
+ Addedstrip-bom@2.0.0(transitive)
+ Addedstrip-indent@1.0.1(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtrim-newlines@1.0.0(transitive)
+ Addedvalidate-npm-package-license@3.0.4(transitive)
- Removedarray-uniq@0.1.1(transitive)
- Removedbin-version@0.1.0(transitive)
- Removedfind-versions@0.1.1(transitive)
- Removedget-stdin@0.1.0(transitive)
- Removedminimist@0.1.0(transitive)
- Removedsemver@2.3.2(transitive)
- Removedsemver-regex@0.1.1(transitive)
Updatedbin-version@^1.0.0
Updatedminimist@^1.1.0
Updatedsemver@^3.0.1