{"name":"@conventional-changelog/git-client","version":"2.3.0","keywords":["git","client","conventional","changelog"],"author":{"url":"https://github.com/dangreen","name":"Dan Onoshko","email":"danon0404@gmail.com"},"license":"MIT","_id":"@conventional-changelog/git-client@2.3.0","maintainers":[{"name":"bcoe","email":"bencoe@gmail.com"},{"name":"oss-bot","email":"bencoe+oss-bot@gmail.com"},{"name":"dangreen","email":"danon0404@gmail.com"}],"homepage":"https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/git-client#readme","bugs":{"url":"https://github.com/conventional-changelog/conventional-changelog/issues"},"dist":{"shasum":"1102706cecad18c61bf0c8584fc566bd71439edb","tarball":"http://registry-npm.ywwl.com/@conventional-changelog/git-client/download/@conventional-changelog/git-client-2.3.0.tgz","fileCount":18,"integrity":"sha512-QMDUPg9jMnclFoQL/YwLhdvDK+El3SPBiB6B9gqXQk283lWLw9qb4y4DPNZWMHaIeB6Xkx4CD7AEgnCxihWgng==","signatures":[{"sig":"MEUCIA53WpkOf7R3V0L7yyYFQaYdc2kSlKiLRhxZtEyMxjneAiEAhr/njfZEYBHoId6h3BNO8VQSigpnj6Xp5sBlEP0lJrs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46954,"size":12788,"noattachment":false,"key":"/@conventional-changelog/git-client/-/@conventional-changelog/git-client-2.3.0.tgz"},"type":"module","_from":"file:conventional-changelog-git-client-2.3.0.tgz","engines":{"node":">=18"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"_npmUser":{"name":"dangreen","email":"danon0404@gmail.com"},"_resolved":"/tmp/343d17c0e1fe68ca01356ad093900644/conventional-changelog-git-client-2.3.0.tgz","_integrity":"sha512-QMDUPg9jMnclFoQL/YwLhdvDK+El3SPBiB6B9gqXQk283lWLw9qb4y4DPNZWMHaIeB6Xkx4CD7AEgnCxihWgng==","repository":{"url":"git+https://github.com/conventional-changelog/conventional-changelog.git","type":"git","directory":"packages/git-client"},"_npmVersion":"10.8.2","description":"Simple git client for conventional changelog packages.","directories":{},"_nodeVersion":"18.20.8","dependencies":{"semver":"^7.5.2"},"_hasShrinkwrap":false,"peerDependencies":{"conventional-commits-filter":"^5.0.0","conventional-commits-parser":"^6.1.0"},"peerDependenciesMeta":{"conventional-commits-filter":{"optional":true},"conventional-commits-parser":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/git-client_2.3.0_1748026983294_0.17431757716141227","host":"s3://npm-registry-packages-npm-production"},"readme":"# @conventional-changelog/git-client\n\n[![ESM-only package][package]][package-url]\n[![NPM version][npm]][npm-url]\n[![Node version][node]][node-url]\n[![Dependencies status][deps]][deps-url]\n[![Install size][size]][size-url]\n[![Build status][build]][build-url]\n[![Coverage status][coverage]][coverage-url]\n\n[package]: https://img.shields.io/badge/package-ESM--only-ffe536.svg\n[package-url]: https://nodejs.org/api/esm.html\n\n[npm]: https://img.shields.io/npm/v/@conventional-changelog/git-client.svg\n[npm-url]: https://npmjs.com/package/@conventional-changelog/git-client\n\n[node]: https://img.shields.io/node/v/@conventional-changelog/git-client.svg\n[node-url]: https://nodejs.org\n\n[deps]: https://img.shields.io/librariesio/release/npm/@conventional-changelog/git-client\n[deps-url]: https://libraries.io/npm/@conventional-changelog%2Fgit-client\n\n[size]: https://packagephobia.com/badge?p=@conventional-changelog/git-client\n[size-url]: https://packagephobia.com/result?p=@conventional-changelog/git-client\n\n[build]: https://img.shields.io/github/actions/workflow/status/conventional-changelog/conventional-changelog/tests.yaml?branch=master\n[build-url]: https://github.com/conventional-changelog/conventional-changelog/actions\n\n[coverage]: https://coveralls.io/repos/github/conventional-changelog/conventional-changelog/badge.svg?branch=master\n[coverage-url]: https://coveralls.io/github/conventional-changelog/conventional-changelog?branch=master\n\nSimple git client for conventional changelog packages.\n\n## Install\n\n```bash\n# pnpm\npnpm add @conventional-changelog/git-client conventional-commits-filter conventional-commits-parser\n# yarn\nyarn add @conventional-changelog/git-client conventional-commits-filter conventional-commits-parser\n# npm\nnpm i @conventional-changelog/git-client conventional-commits-filter conventional-commits-parser\n```\n\nNote: `conventional-commits-filter` and `conventional-commits-parser` are required only if you need `ConventionalGitClient#getCommits` method.\n\n## Usage\n\n```js\nimport {\n  GitClient,\n  ConventionalGitClient\n} from '@conventional-changelog/git-client'\n\n// Basic git client\nconst client = new GitClient(process.cwd())\n\nawait client.add('package.json')\nawait client.commit({ message: 'chore: release v1.0.0' })\nawait client.tag({ name: 'v1.0.0' })\nawait client.push('master')\n\n// Conventional git client, which extends basic git client\nconst conventionalClient = new ConventionalGitClient(process.cwd())\n\nconsole.log(await conventionalClient.getVersionFromTags()) // v1.0.0\n```\n\n## Documentation\n\nFor the API reference, visit the [documentation website](https://conventional-changelog.js.org/git-client/).\n\n## License\n\nMIT © [Dan Onoshko](https://github.com/dangreen)\n","publish_time":1748026983479,"_cnpm_publish_time":1748026983479,"dist-tags":{"latest":"3.2.0"}}