Socket
Book a DemoInstallSign in
Socket

@contiamo/git-describe

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contiamo/git-describe

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

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
12
20%
Maintainers
4
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 12 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts