# is-repo

> [![Build Status](https://travis-ci.com/krmax44/is-repo.svg?branch=master)](https://travis-ci.com/krmax44/is-repo) [![install size](https://packagephobia.now.sh/badge?p=is-repo)](https://packagephobia.now.sh/result?p=is-repo) [![npm version](https://img.sh

Latest version **1.0.1** (published 2019-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-repo
pnpm add is-repo
yarn add is-repo
bun add is-repo
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-09-17 |
| First published | 2019-09-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | krmax44 |
| Maintainers | krmax44 |

## Links

- npm: https://www.npmjs.com/package/is-repo
- Repository: https://github.com/krmax44/is-repo
- npm.io page: https://npm.io/package/is-repo

## Recent versions

- 1.0.1 (latest) — 2019-09-17
- 1.0.0 — 2019-09-17

## README

# Is Repo

[![Build Status](https://travis-ci.com/krmax44/is-repo.svg?branch=master)](https://travis-ci.com/krmax44/is-repo)
[![install size](https://packagephobia.now.sh/badge?p=is-repo)](https://packagephobia.now.sh/result?p=is-repo)
[![npm version](https://img.shields.io/npm/v/is-repo)](https://www.npmjs.com/package/is-repo)

Determines whether a given path is a Git repository. Uses `git rev-parse --is-inside-work-tree`.

## Installation

```bash
yarn add is-repo
# or with npm
npm i is-repo
```

## Usage

Very simple.

```js
import isRepo from 'is-repo';

await isRepo(); // defaults to process.cwd()
await isRepo('path/to/repo'); // true || false
```

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