Skip to content

amitosdev/git-last-commit-hash

Repository files navigation

git-last-commit-hash

Get the current git commit hash from process.cwd()

Installation

npm install git-last-commit-hash

Usage

import { getGitLastCommitHash } from 'git-last-commit-hash'

const hash = await getGitLastCommitHash()
console.log(hash) // e.g., "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0"

License

Apache-2.0

About

Get the current git commit hash from process.cwd()

Resources

License

Stars

Watchers

Forks

Packages

No packages published