https://github.com/dj0nny/check-git
Determines if a git repository exists within a directory
https://github.com/dj0nny/check-git
git git-repository node nodejs package
Last synced: 2 months ago
JSON representation
Determines if a git repository exists within a directory
- Host: GitHub
- URL: https://github.com/dj0nny/check-git
- Owner: dj0nny
- Created: 2019-07-13T14:37:51.000Z (almost 7 years ago)
- Default Branch: develop
- Last Pushed: 2019-07-14T09:59:27.000Z (almost 7 years ago)
- Last Synced: 2025-09-23T23:59:55.958Z (10 months ago)
- Topics: git, git-repository, node, nodejs, package
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# check-git
[](https://badge.fury.io/js/check-git.svg)

> Determines if a git repository exists within a directory
## Getting Started
### Prerequisites
For this project you need [__Node__](https://nodejs.org/en/) installed on your machine with [__Npm__](https://www.npmjs.com/) or [__Yarn__](https://yarnpkg.com)
### Installing
Open a terminal and type, inside the directory:
```bash
npm i check-git
# OR
yarn add check-git
```
### Usage
```javascript
if(checkGit(process.cwd())) {
console.log('Yes dude, there is a git repository')
} else {
console.log('Sorry dude, there is no git repository is this folder')
}
```
## Built with ❤️ using:
* [Node.js](https://nodejs.org) - JavaScript runtime built on Chrome's V8 JavaScript engine.
## Contributing
Pull Requests for adding features ⇄ and ★ are welcome 😎