Skip to content

git-rev 3.5.1-20240618113943-d1d2cdf

Install from the command line:
Learn more about npm packages
$ npm install @nicelabs/git-rev@3.5.1-20240618113943-d1d2cdf
Install via package.json:
"@nicelabs/git-rev": "3.5.1-20240618113943-d1d2cdf"

About this version

@nice-labs/git-rev

node version npm module

Synchronously get the current git commit hash, tag, count, branch or commit message.

Forked from git-rev-sync-js.

usage

import git from '@nice-labs/git-rev';

// short commit-hash
console.log(git.commitHash(true)); // 75bf4ee

// long commit-hash
console.log(git.commitHash()); // 75bf4eea9aa1a7fd6505d0d0aa43105feafa92ef

// branch name
console.log(git.branchName()); // master

installation

npm install --save-dev @nice-labs/git-rev

Details


Assets

  • git-rev-3.5.1-20240618113943-d1d2cdf.tgz

Download activity

  • Total downloads 29
  • Last 30 days 0
  • Last week 0
  • Today 0