@contiamo/git-describe
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Git describe

Simple package to provide a semver compatible version of git describe.

Usage

yarn add @contiamo/git-describe
// With `git describe --tags --always --dirty` -> "v16.0.4-1-gf93077752-dirty"
import { getSemanticVersion } from '@contiamo/git-describe';

getSemanticVersion(); // v16.0.5-dev.1+gf93077752.dirty

Please note that the patch version is bumped, so the semver order is correct. We can check this on any semver validator:

https://jubianchi.github.io/semver-check/#/version/v16.0.5-dev.1%2Bgf93077752.dirty

Ref

https://github.com/mdomke/git-semver

Readme

Keywords

none

Package Sidebar

Install

npm i @contiamo/git-describe

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

9.01 kB

Total Files

13

Last publish

Collaborators

  • tejaskumar
  • fabien0102
  • mpotomin