is-git-repository
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 = ; ; // true or false of process.cwd(); // true or false
LICENSE
MIT © Jan Peer Stöcklmair