1.0.2 • Published 5 years ago

@rkesters/git-agent v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@rkesters/git-rev

node version npm module

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

usage

import git from "@rkesters/git-agent";

// 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 @rkesters/git-agent
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.0

5 years ago