Skip to content

sindresorhus/binary-version-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bin-version-cli

Get the version of a binary in semver format

Install

$ npm install --global bin-version-cli

Usage

$ bin-version --help

  Usage
    $ bin-version <binary> [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)
    $ bin-version curl
    7.30.0
    $ openssl version
    OpenSSL 1.0.2p  14 Aug 2018
    $ bin-version openssl version
    1.0.2

Related

About

Get the version of a binary in semver format

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors