Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vivekimsit/is-git-repo
- Owner: vivekimsit
- License: mit
- Created: 2017-04-26T12:18:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-28T13:33:54.000Z (over 7 years ago)
- Last Synced: 2024-11-15T16:44:02.690Z (about 1 month ago)
- Topics: git, learning-by-doing, nodejs
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
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)