Ecosyste.ms: Awesome
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: about 2 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 (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T14:52:09.000Z (almost 2 years ago)
- Last Synced: 2024-10-29T21:46:48.213Z (2 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
[![Build Status](https://travis-ci.com/JPeer264/node-is-git-repository.svg?branch=main)](https://travis-ci.com/JPeer264/node-is-git-repository)
[![Build status](https://ci.appveyor.com/api/projects/status/candvk0h292r03q2?svg=true)](https://ci.appveyor.com/project/JPeer264/node-is-git-repository)
[![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
```
or
```sh
$ yarn add is-git-repository
```## Usage
```js
const isGit = require('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)