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
- Host: GitHub
- URL: https://github.com/jpeer264/node-is-git-repository
- Owner: JPeer264
- License: mit
- Created: 2017-03-18T21:02:12.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T14:52:09.000Z (over 2 years ago)
- Last Synced: 2024-10-29T21:46:48.213Z (8 months ago)
- Topics: git, is-git, nodejs, repo, repository
- Language: JavaScript
- Size: 1.16 MB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# is-git-repository
[](https://github.com/JPeer264/node-is-git-repository/actions/workflows/ci.yml?query=branch%3Amain)
[](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)