find-versions-cli

5.0.0 • Public • Published

find-versions-cli

Find semver versions in a string: unicorn v1.2.31.2.3

Check out bin-version-cli if you need to find the version of a binary.

Install

npm install --global find-versions-cli

Usage

$ find-versions --help

  Usage
    $ find-versions <input> [--first] [--loose]

  Options
    --all    Return all matches instead of just the first
    --loose  Match non-semver versions like 1.88

  Example
    $ find-versions 'unicorn v1.2.3'
    1.2.3

  Exits with code 2 if it could not find any versions

Related

Package Sidebar

Install

npm i find-versions-cli

Weekly Downloads

58

Version

5.0.0

License

MIT

Unpacked Size

3.71 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus