@muyi086/git-commit-info
v1.0.17
Published
get commit info
Downloads
26
Maintainers
Readme
git-commit-info
Install
npm install @muyi086/git-commit-info
# common JS
const { gitCommitInfo } = require('@muyi086/git-commit-info')
Use
const {
projectName,
branch,
gitUserName,
gitUserEmail,
commitName,
commitEmail,
commitDate,
commitSubject,
commitHash,
latestTag
} = gitCommitInfo()
// projectName, branch, gitUserName, gitUserEmail, commitName, commitEmail, commitDate, commitSubject, commitHash, latestTag
console.log(projectName, branch, gitUserName, gitUserEmail, commitName, commitEmail, commitDate, commitSubject, commitHash, latestTag)