bump-pkg-json
v0.1.3
Published
A command-line tool to increment or set the version in package.json.
Maintainers
Readme
bump-pkg-json
bump-pkg-json is a command-line tool that increments the version of package.json based on the bump type specified or sets a specific version if provided.
Installation
To install bump-pkg-json, run the following command:
npm install -g bump-pkg-jsonUsage
Navigate to the directory where your package.json file is located, then run the following command:
bump-pkg-json <bump-type or version>Replace <bump-type or version> with one of the following:
MAJORfor a major version bump.MINORfor a minor version bump.PATCHfor a patch version bump.- A specific version in the format x.x.x to set a specific version.
If no bump type or version is provided, the default is "PATCH".
Example
To increment the patch version:
bump-pkg-json PATCHTo set a specific version:
bump-pkg-json 1.2.3This will update the package.json file in the current directory with the new version.
