https://github.com/koumoul-dev/semver-extract
A small cli to parse semver tags and extract major, minor, etc.
https://github.com/koumoul-dev/semver-extract
Last synced: 7 months ago
JSON representation
A small cli to parse semver tags and extract major, minor, etc.
- Host: GitHub
- URL: https://github.com/koumoul-dev/semver-extract
- Owner: koumoul-dev
- Created: 2018-10-02T14:20:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-24T15:33:16.000Z (almost 2 years ago)
- Last Synced: 2025-03-02T18:52:05.773Z (8 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# semver-extract
*A small cli to parse semver tags and extract major, minor, etc.*
This is very useful to create alternative tags of a docker image for example.
npm i -g semver-extract
```console
$ semver-extract --major 3.1.0
3
$ semver-extract --minor 3.1.0
3.1
$ semver-extract -x --minor 3.1.0
3.1.x
$ semver-extract v3.1.0
3.1.0
```