1 # find-versions [![Build Status](https://travis-ci.org/sindresorhus/find-versions.svg?branch=master)](https://travis-ci.org/sindresorhus/find-versions)
3 > Find semver versions in a string: `unicorn 1.0.0` → `1.0.0`
9 $ npm install --save find-versions
16 var findVersions = require('find-versions');
18 findVersions('unicorn 1.0.0 rainbow v2.3.4+build.1');
19 //=> ['1.0.0', '2.3.4+build.1']
21 findVersions('cp (GNU coreutils) 8.22', {loose: true});
28 ### findVersions(input, options)
40 Also match non-semver versions like `1.88`.
41 They're coerced into semver compliant versions.
47 $ npm install --global find-versions
51 $ find-versions --help
54 $ find-versions <string> [--first] [--loose]
55 $ echo <string> | find-versions
58 $ find-versions 'unicorns v1.2.3'
61 $ curl --version | find-versions --first
65 --first Return the first match
66 --loose Match non-semver versions like 1.88
72 MIT © [Sindre Sorhus](http://sindresorhus.com)