git-last-commit-hash
v1.0.0
Published
Get the current git commit hash from process.cwd()
Downloads
29
Readme
git-last-commit-hash
Get the current git commit hash from process.cwd()
Installation
npm install git-last-commit-hashUsage
import { getGitLastCommitHash } from 'git-last-commit-hash'
const hash = await getGitLastCommitHash()
console.log(hash) // e.g., "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0"License
Apache-2.0
