5.0.0 • Published 2 years ago
find-versions-cli v5.0.0
find-versions-cli
Find semver versions in a string:
unicorn v1.2.3→1.2.3
Check out bin-version-cli if you need to find the version of a binary.
Install
npm install --global find-versions-cliUsage
$ 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 versionsRelated
- find-versions - API for this module
- bin-version-cli - Get the version of a binary in semver format