A Node.js CLI tool to automatically update the version in package.json
, package-lock.json
, and the version badge in README.md
.
- Automatically updates the
version
field inpackage.json
andpackage-lock.json
. - Updates the version badge in
README.md
(Shields.io style). - Simple CLI tool with easy integration into any Node.js project.
To install globally:
npm install -g version-bumpify
To update the version across package.json
, package-lock.json
, and the version badge in README.md
:
bumpify <new_version>
Example:
bumpify 2.0.2
This command will:
- Update
package.json
andpackage-lock.json
to version2.0.2
. - Update the Shields.io version badge in
README.md
.
Before running the command:
![Version](https://img.shields.io/badge/version-v1.0.2-blue.svg)
After running bump 2.0.2
:
![Version](https://img.shields.io/badge/version-v2.0.2-blue.svg)
To run the test suite:
npm test
This will execute the test cases to ensure the functionality of the bumpify.
Contributions are welcome! For detailed contribution guidelines, please refer to the CONTRIBUTING file.
This project is licensed under the MIT License - see the LICENSE file for details.
If you find any bugs or have issues, please report them via GitHub Issues.