create-w
v0.0.1
Published
A CLI tool to increment version numbers in package.json using semantic versioning
Maintainers
Readme
create-ver
A simple CLI tool to increment version numbers in package.json using semantic versioning.
Installation
You don't need to install it globally. Simply use it with npx: npx create-ver Or install it globally for frequent use: npm install -g create-ver
Usage
Run the command in your project directory (where package.json is located):
Using npx
npm init ver
If installed globally
create-ver
Where <level> is one of:
1- Increment patch version (x.y.Z)2- Increment minor version (x.Y.z) and reset patch to 03- Increment major version (X.y.z) and reset minor and patch to 0
Examples
Current version: 1.0.0
npm init ver 1 # New version: 1.0.1 (patch increment) npm init ver 2 # New version: 1.1.0 (minor increment) npm init ver 3 # New version: 2.0.0 (major increment)
Features
- Follows semantic versioning standards
- Preserves existing formatting of package.json
- Provides clear error messages for common issues
- Validates version format before making changes
License
MIT
