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: 2 months 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-28T13:33:54.000Z (about 9 years ago)
- Last Synced: 2025-06-04T12:17:10.061Z (about 1 year ago)
- Topics: git, learning-by-doing, nodejs
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# is-git-repo [](https://github.com/sindresorhus/xo) [](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)