Gathering detailed insights and metrics for @conventional-changelog/git-client
Gathering detailed insights and metrics for @conventional-changelog/git-client
Gathering detailed insights and metrics for @conventional-changelog/git-client
Gathering detailed insights and metrics for @conventional-changelog/git-client
Generate changelogs and release notes from a project's commit messages and metadata.
npm install @conventional-changelog/git-client
Typescript
Module System
Min. Node Version
Node Version
NPM Version
conventional-changelog: v7.1.1
Updated on Jul 10, 2025
conventional-changelog-conventionalcommits: v9.1.0
Updated on Jul 10, 2025
conventional-changelog-writer: v8.2.0
Updated on Jul 09, 2025
conventional-commits-parser: v6.2.0
Updated on Jun 09, 2025
conventional-recommended-bump: v11.2.0
Updated on Jun 07, 2025
conventional-changelog: v7.1.0
Updated on Jun 07, 2025
TypeScript (77.48%)
JavaScript (20.23%)
Handlebars (2.29%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
ISC License
8,156 Stars
1,786 Commits
729 Forks
54 Watchers
3 Branches
152 Contributors
Updated on Jul 11, 2025
Latest Version
2.5.1
Package Id
@conventional-changelog/git-client@2.5.1
Unpacked Size
43.68 kB
Size
11.87 kB
File Count
18
NPM Version
10.8.2
Node Version
18.20.8
Published on
Jun 02, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
Simple git client for conventional changelog packages.
1# pnpm 2pnpm add @conventional-changelog/git-client conventional-commits-filter conventional-commits-parser 3# yarn 4yarn add @conventional-changelog/git-client conventional-commits-filter conventional-commits-parser 5# npm 6npm i @conventional-changelog/git-client conventional-commits-filter conventional-commits-parser
Note: conventional-commits-filter
and conventional-commits-parser
are required only if you need ConventionalGitClient#getCommits
method.
1import { 2 GitClient, 3 ConventionalGitClient 4} from '@conventional-changelog/git-client' 5 6// Basic git client 7const client = new GitClient(process.cwd()) 8 9await client.add('package.json') 10await client.commit({ message: 'chore: release v1.0.0' }) 11await client.tag({ name: 'v1.0.0' }) 12await client.push('master') 13 14// Conventional git client, which extends basic git client 15const conventionalClient = new ConventionalGitClient(process.cwd()) 16 17console.log(await conventionalClient.getVersionFromTags()) // v1.0.0
new GitClient(cwd: string)
Create a wrapper around git
CLI instance.
getRawCommits(params?: GitLogParams): AsyncIterable<string>
Get raw commits stream.
getTags(): AsyncIterable<string>
Get tags stream.
getLastTag(): Promise<string>
Get last tag.
checkIgnore(file: string): Promise<boolean>
Check file is ignored via .gitignore.
add(files: string | string[]): Promise<void>
Add files to git index.
commit(params: GitCommitParams): Promise<void>
Commit changes.
tag(params: GitTagParams): Promise<void>
Create a tag for the current commit.
getCurrentBranch(): Promise<string>
Get current branch name.
push(branch: string): Promise<void>
Push changes to remote.
verify(rev: string): Promise<string>
Verify rev exists.
getConfig(key: string): Promise<string>
Get config value by key.
new ConventionalGitClient(cwd: string)
Wrapper around Git CLI with conventional commits support.
getCommits(params?: ConventionalGitLogParams, parserOptions?: ParserStreamOptions): AsyncIterable<Commit>
Get parsed commits stream.
getSemverTags(params?: GitTagsLogParams): AsyncIterable<string>
Get semver tags stream.
getLastSemverTag(params?: GetSemverTagsParam): Promise<string>
Get last semver tag.
getVersionFromTags(params?: GetSemverTagsParams): Promise<string | null>
Get current sematic version from git tags.
MIT © Dan Onoshko
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
Found 2/25 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More