1.0.2 • Published 5 years ago

is-git-sync v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

is-git-sync

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 is-git-sync
# OR
yarn add is-git-sync

Usage

if(isGitSync(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 😎