A tool to check if a specific path is a git repository
npm install is-git-repository

Checks synchronously if a specific directory is a git repository
``sh`
$ npm i is-git-repository --save
`js
import isGit from "is-git-repository";
isGit(); // true or false of process.cwd()
isGit("any/git/repo"); // true or false
``
MIT © Jan Peer Stöcklmair