conventional-recommended-version
v1.1.0
Published
Determine the semantic version number of your project
Downloads
91
Maintainers
Readme
conventional-recommended-version
Using a conventional-changelog commit history, determine the current version number of your project.
This is done by reading your local git commit history and searching for fixes, features, and breaking changes.
Installation
npm install conventional-recommended-version
Usage
import { getVersion } from 'conventional-recommended-version';
getVersion('/Users/you/projects/some-project').then(console.log);
// { major: 1, minor: 0, patch: 0 }
Supported Conventions
conventional-recommended-version currently only supports the angular conventional-changelog convention as that's the one I use.
Patches are welcome.