Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/bin-version-cli
Get the version of a binary in semver format
https://github.com/sindresorhus/bin-version-cli
binary cli-app nodejs npm-package semver version
Last synced: 3 months ago
JSON representation
Get the version of a binary in semver format
- Host: GitHub
- URL: https://github.com/sindresorhus/bin-version-cli
- Owner: sindresorhus
- License: mit
- Created: 2018-11-07T17:28:16.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-04-03T08:44:01.000Z (7 months ago)
- Last Synced: 2024-05-22T17:34:28.287Z (6 months ago)
- Topics: binary, cli-app, nodejs, npm-package, semver, version
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 35
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-list - bin-version-cli
README
# binary-version-cli
> Get the version of a binary in [semver](https://github.com/npm/node-semver) format
## Install
```sh
npm install --global binary-version-cli
```## Usage
```console
$ binary-version --helpUsage
$ binary-version [arguments]The arguments default to `--version`
Exits with code 2 if no version could be found
Examples
$ curl --version
curl 7.30.0 (x86_64-apple-darwin13.0)
$ binary-version curl
7.30.0
$ openssl version
OpenSSL 1.0.2p 14 Aug 2018
$ binary-version openssl version
1.0.2
```## Related
- [binary-version](https://github.com/sindresorhus/binary-version) - API for this module
- [find-versions-cli](https://github.com/sindresorhus/find-versions-cli) - Find semver versions in a string