conventional-recommended-version
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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 Sidebar

Install

npm i conventional-recommended-version

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

6.87 kB

Total Files

5

Last publish

Collaborators

  • fold_left