@muyi086/git-commit-export-html
v1.0.6
Published
Find the commit records of a user for a specific time period, and generate corresponding HTML and JSON files
Downloads
4
Maintainers
Readme
git-commit-export-html
Install
npm install @muyi086/git-commit-export-html
# common JS
const { gitCommitExportHtml } = require('@muyi086/git-commit-export-html')
Use
const options = {
since: '2021-02-29', // start time
until: '2021-04-01', // end time
number: 1000, // records limit
// default fields: ['abbrevHash', 'hash', 'subject', 'authorName']
// hash - the long hash of the commit
// abbrevHash - the abbreviated commit hash
// treeHash - the tree hash of the commit
// abbrevTreeHash - the abbreviated commit hash
// parentHashes - the parent hashes
// abbrevParentHashes - the abbreviated parent hashes
// authorName - author name of the commit
// authorEmail - author email of the commit
// authorDate - author date of the commit
// authorDateRel - relative author date of the commit
// committerName - committer name
// committerEmail - committer email
// committerDate - committer date
// committerDateRel - relative committer date
// subject - commit message (first line)
// body - commit body
// rawBody - raw body (subject + body)
// tag - raw tag information of commit
fields: ['subject', 'authorName', 'authorDate']
}
gitCommitExportHtml(options)