conventional-recommended-version

Determine the semantic version number of your project

OTHER License

Downloads
20
Stars
5
Committers
1

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.

Badges

  • NPM version
  • NPM downloads
  • Follow JamieMason on GitHub
  • Follow fold_left on Twitter
Package Rankings
Top 13.42% on Npmjs.org
Badges
Extracted from project README
NPM version NPM downloads Follow JamieMason on GitHub Follow fold_left on Twitter