Skip to content

Determines if a git repository exists within a directory

Notifications You must be signed in to change notification settings

dj0nny/check-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

check-git

npm version npm

Determines if a git repository exists within a directory

Getting Started

Prerequisites

For this project you need Node installed on your machine with Npm or Yarn

Installing

Open a terminal and type, inside the directory:

npm i check-git
# OR
yarn add check-git

Usage

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 - JavaScript runtime built on Chrome's V8 JavaScript engine.

Contributing

Pull Requests for adding features ⇄ and ★ are welcome 😎

About

Determines if a git repository exists within a directory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published