Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/vivekimsit/is-git-repo

Checks if given directory is git repository
https://github.com/vivekimsit/is-git-repo

git learning-by-doing nodejs

Last synced: 9 days ago
JSON representation

Checks if given directory is git repository

Awesome Lists containing this project

README

        

# is-git-repo [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) [![Build Status](https://travis-ci.org/vivekimsit/is-git-repo.svg?branch=master)](https://travis-ci.org/vivekimsit/is-git-repo)

> Check if the given directory is a git repo

## Usage

```js
const isGitDir = require('is-git-directory');

isGitDir(path).then(result => console.log(result))
```

## License

MIT © [Vivek Poddar](http://github.com/vivekimsit)