is-git-repository

A tool to check if a specific path is a git repository

Usage no npm install needed!

<script type="module">
  import isGitRepository from 'https://cdn.skypack.dev/is-git-repository';
</script>

README

is-git-repository

Build Status Build status Coverage Status

Checks synchronously if a specific directory is a git repository

Installation

$ npm i is-git-repository --save

or

$ yarn add is-git-repository

Usage

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