find-versions-cli
Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`
Last updated 2 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install find-versions-cli 
SYNC missed versions from official npm registry.

find-versions-cli Build Status

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

License

MIT © Sindre Sorhus

Current Tags

  • 3.0.0                                ...           latest (2 years ago)

4 Versions

  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |