conventional-recommended-version

Determine the semantic version number of your project

Usage no npm install needed!

<script type="module">
  import conventionalRecommendedVersion from 'https://cdn.skypack.dev/conventional-recommended-version';
</script>

README

conventional-recommended-version

NPM version NPM downloads Dependency Status Gitter Chat for conventional-recommended-version Donate via PayPal Donate via Gratipay Analytics Follow JamieMason on GitHub Follow fold_left on Twitter

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.

Examples

$ conventional-recommended-version
0.5.2
$ conventional-recommended-version --postfix canary
0.5.2-canary

Installation

npm install -g conventional-recommended-version

Options

$ conventional-recommended-version --help

  Usage: conventional-recommended-version [options]

  Options:

    -h, --help                  output usage information
    -V, --version               output the version number
    -d, --directory [location]  path to local git repository
    -p, --postfix [name]        a postfix such as "rc1", "canary" or "beta1"

Supported Conventions

conventional-recommended-version currently only supports the angular conventional-changelog convention as that's the one I use.

Patches are welcome.