npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

binary-version-cli

3.1.0

@sindresorhus

npmHomeRepoSnykSocket
Downloads:3
$ npm install binary-version-cli
DailyWeeklyMonthlyYearly

binary-version-cli

Get the version of a binary in semver format

Install

npm install --global binary-version-cli

Usage

$ binary-version --help

  Usage
    $ binary-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)
    $ 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 - API for this module
  • find-versions-cli - Find semver versions in a string