is-git-repository
v2.0.0 is git repository repo is-git exists
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 = require('is-git-repository');
isGit(); // true or false of process.cwd()
isGit('any/git/repo'); // true or false
LICENSE
MIT © Jan Peer Stöcklmair
npm i is-git-repository
Metadata
- MIT
- Whatever
- Jan Peer Stöcklmair
- released 7/23/2020