Socket
Book a DemoInstallSign in
Socket

git-commit-versioner

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-commit-versioner

CLI tool to update version numbers

1.0.1
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
0
Weekly downloads
 
Created
Source

Git Commit Versioner (gcv)

Lazy to update your version on package.json (and the lock file)? This repository will help you to do it fast!

gcv is a CLI tool designed to automate the version bumping process in your package.json and package-lock.json files. It allows you to easily update the patch, minor, or major version of your project and commit the changes to Git.

Features

  • Patch version bump (0.0.x)
  • Minor version bump (0.x.0)
  • Major version bump (x.0.0)
  • Automatically stages and commits the version update to Git.

Installation

To install gcv globally on your system, simply run the following command:

npm install -g git-commit-versioner

Options

To see different options run: gcv -h

l, low - Update patch version (0.0.x)
m, medium - Update minor version (0.x.0)
h, high - Update major version (x.0.0)
-h - Show help

Examples

Update Patch Version: gcv l This will update the version to the next patch version (e.g., 1.0.0 -> 1.0.1).

Update Minor Version: gcv m This will update the version to the next minor version (e.g., 1.0.0 -> 1.1.0).

Update Major Version: gcv h This will update the version to the next major version (e.g., 1.0.0 -> 2.0.0).

Development

If you'd like to modify the tool or contribute to its development, you can clone the repository:

git clone <repositoy_url>
cd <repository_folder>

FAQs

Package last updated on 22 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.