# @types/git-repo-name

> TypeScript definitions for git-repo-name

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

## Install

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

## 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 | 1.0.4 |
| Published | 2023-11-07 |
| First published | 2018-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51429 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.0.4 (latest) — 2023-11-07
- 1.0.1 (ts3.6) — 2021-07-08
- 1.0.0 (ts2.0) — 2018-12-25
- 1.0.3 — 2023-10-18
- 1.0.2 — 2023-09-20

## README

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

declare function gitRepoName(options?: string | gitRepoName.Options): Promise<string>;
declare function gitRepoName(callback: (err: Error | null, repoName: string) => void): void;
declare function gitRepoName(
    options: string | gitRepoName.Options,
    callback: (err: Error | null, repoName: string) => void,
): void;

declare namespace gitRepoName {
    function promise(options?: string | Options): Promise<string>;
    function sync(options?: string | Options): string;

    interface Options {
        cwd?: string | undefined;
        path?: string | undefined;
    }
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).

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