schnee effeckt und fehler Korektur
This commit is contained in:
55
node_modules/find-versions/readme.md
generated
vendored
55
node_modules/find-versions/readme.md
generated
vendored
@@ -1,22 +1,22 @@
|
||||
# find-versions [](https://travis-ci.org/sindresorhus/find-versions)
|
||||
# find-versions [](https://travis-ci.com/sindresorhus/find-versions)
|
||||
|
||||
> Find semver versions in a string: `unicorn 1.0.0` → `1.0.0`
|
||||
> Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save find-versions
|
||||
$ npm install find-versions
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var findVersions = require('find-versions');
|
||||
const findVersions = require('find-versions');
|
||||
|
||||
findVersions('unicorn 1.0.0 rainbow v2.3.4+build.1');
|
||||
//=> ['1.0.0', '2.3.4+build.1']
|
||||
findVersions('unicorn v1.2.3 rainbow 2.3.4+build.1');
|
||||
//=> ['1.2.3', '2.3.4+build.1']
|
||||
|
||||
findVersions('cp (GNU coreutils) 8.22', {loose: true});
|
||||
//=> ['8.22.0']
|
||||
@@ -25,48 +25,29 @@ findVersions('cp (GNU coreutils) 8.22', {loose: true});
|
||||
|
||||
## API
|
||||
|
||||
### findVersions(input, options)
|
||||
### findVersions(stringWithVersions, [options])
|
||||
|
||||
#### input
|
||||
#### stringWithVersions
|
||||
|
||||
*Required*
|
||||
Type: `string`
|
||||
|
||||
#### options.loose
|
||||
#### options
|
||||
|
||||
Type: `boolean`
|
||||
Type: `Object`
|
||||
|
||||
##### loose
|
||||
|
||||
Type: `boolean`
|
||||
Default: `false`
|
||||
|
||||
Also match non-semver versions like `1.88`.
|
||||
They're coerced into semver compliant versions.
|
||||
Also match non-semver versions like `1.88`. They're coerced into semver compliant versions.
|
||||
|
||||
|
||||
## CLI
|
||||
## Related
|
||||
|
||||
```
|
||||
$ npm install --global find-versions
|
||||
```
|
||||
|
||||
```
|
||||
$ find-versions --help
|
||||
|
||||
Usage
|
||||
$ find-versions <string> [--first] [--loose]
|
||||
$ echo <string> | find-versions
|
||||
|
||||
Example
|
||||
$ find-versions 'unicorns v1.2.3'
|
||||
1.2.3
|
||||
|
||||
$ curl --version | find-versions --first
|
||||
7.30.0
|
||||
|
||||
Options
|
||||
--first Return the first match
|
||||
--loose Match non-semver versions like 1.88
|
||||
```
|
||||
- [find-versions-cli](https://github.com/sindresorhus/find-versions-cli) - CLI for this module
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
||||
|
||||
Reference in New Issue
Block a user