An open API service indexing awesome lists of open source software.

https://github.com/jpeer264/node-is-git-repository

A tool to check if a specific location is a git repository
https://github.com/jpeer264/node-is-git-repository

git is-git nodejs repo repository

Last synced: 3 months ago
JSON representation

A tool to check if a specific location is a git repository

Awesome Lists containing this project

README

        

# is-git-repository

[![Build Status](https://img.shields.io/github/actions/workflow/status/JPeer264/node-is-git-repository/ci.yml?branch=main)](https://github.com/JPeer264/node-is-git-repository/actions/workflows/ci.yml?query=branch%3Amain)
[![Coverage Status](https://coveralls.io/repos/github/JPeer264/node-is-git-repository/badge.svg?branch=main)](https://coveralls.io/github/JPeer264/node-is-git-repository?branch=main)

Checks synchronously if a specific directory is a git repository

## Installation

```sh
$ npm i is-git-repository --save
```

## Usage

```js
import isGit from "is-git-repository";

isGit(); // true or false of process.cwd()
isGit("any/git/repo"); // true or false
```

## LICENSE

MIT © [Jan Peer Stöcklmair](https://www.jpeer.at)