# @types/git-branch

> TypeScript definitions for git-branch

Latest version **2.0.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2023-11-07 |
| First published | 2018-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/git-branch
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-branch
- npm.io page: https://npm.io/package/@types/git-branch

## Recent versions

- 2.0.5 (latest) — 2023-11-07
- 2.0.2 (ts3.8) — 2021-12-23
- 2.0.1 (ts2.3) — 2018-12-31
- 2.0.4 — 2023-10-18
- 2.0.3 — 2023-09-20
- 2.0.0 — 2018-06-06

## README

# Installation
> `npm install --save @types/git-branch`

# Summary
This package contains type definitions for git-branch (https://github.com/jonschlinkert/git-branch).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-branch.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-branch/index.d.ts)
````ts
export = GitBranch;

declare function GitBranch(cwd?: string): Promise<string>;
declare function GitBranch(cwd?: string, callback?: (err: null | string, name: string) => void): void;
declare function GitBranch(callback: (err: null | string, name: string) => void): void;

declare namespace GitBranch {
    function sync(cwd?: string): string;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by .

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