# @pnpm/git-utils

> Utilities for git

Latest version **1000.0.0** (published 2024-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pnpm/git-utils
pnpm add @pnpm/git-utils
yarn add @pnpm/git-utils
bun add @pnpm/git-utils
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1000.0.0 |
| Published | 2024-11-29 |
| First published | 2022-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.12 |
| Dependencies | 1 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 36531 |
| Maintainers | pnpmuser, zkochan |
| Keywords | pnpm10, pnpm, git, npm |

## Links

- npm: https://www.npmjs.com/package/@pnpm/git-utils
- Repository: https://github.com/pnpm/pnpm/blob/main/packages/git-utils
- Homepage: https://github.com/pnpm/pnpm/blob/main/packages/git-utils#readme
- Issues: https://github.com/pnpm/pnpm/issues
- Funding: https://opencollective.com/pnpm
- npm.io page: https://npm.io/package/@pnpm/git-utils

## Dependencies (1)

- [execa](https://npm.io/package/execa.md) npm:safe-execa@0.1.2

## Recent versions

- 1000.0.0 (latest) — 2024-11-29
- 900.0.0 — 2024-11-28
- 2.0.0 — 2024-04-09
- 1.0.0 — 2023-03-24
- 0.1.0 — 2022-06-18

## README

# @pnpm/git-utils

> Utilities for git

<!--@shields('npm')-->
[![npm version](https://img.shields.io/npm/v/@pnpm/git-utils.svg)](https://www.npmjs.com/package/@pnpm/git-utils)
<!--/@-->

## Installation

```
pnpm add @pnpm/git-utils
```

## Usage

<!--@example('./example.js')-->
```js
'use strict'
const { getCurrentBranchName } = require('@pnpm-utils').default

main()
async function main() {
  const branchName = await getCurrentBranch();
  console.log(branchName)
}
```
<!--/@-->

# License

MIT

---
_Source: https://npm.io/package/@pnpm/git-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
