A simple utility that bumps the version of your package according to the last commit message.
npm install @sleeksyntax/v-bumpSemantic version bumping for npm packages. Parses git commit messages or accepts CLI arguments.


``bash`
npm install @sleeksyntax/v-bump
`bashBump patch version
v-bump -s patch
Usage
$3
| Flag | Description | Values |
| ---- | ---------------- | ------------------------- |
|
-s | Severity level | patch, minor, major |
| -i | Increment amount | Number (default: 1) |
| -h | Show help | - |Examples:
`bash
v-bump -s patch # 1.0.0 → 1.0.1
v-bump -s patch -i 2 # 1.0.1 → 1.0.3
v-bump -s minor # 1.4.9 → 1.5.0
v-bump -s major # 1.2.5 → 2.0.0
v-bump -s major -i 2 # 1.2.5 → 3.0.0
`$3
When no arguments are passed, v-bump reads the latest git commit message for version instructions.
Format:
[[severity:increment]]`bash
git commit -m "fix: resolve login bug [[patch:1]]"
v-bump # 1.0.0 → 1.0.1git commit -m "feat: add new API [[minor:1]]"
v-bump # 1.0.1 → 1.1.0
git commit -m "breaking: restructure database [[major:1]]"
v-bump # 1.1.0 → 2.0.0
``- Major bump: Resets minor and patch to 0
- Minor bump: Resets patch to 0
- Patch bump: Increments patch only
MIT