Checks synchronously if a specific directory is a git repository
$ npm i is-git-repository --saveimport isGit from "is-git-repository";
isGit(); // true or false of process.cwd()
isGit("any/git/repo"); // true or falseMIT © Jan Peer Stöcklmair
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Checks synchronously if a specific directory is a git repository
$ npm i is-git-repository --saveimport isGit from "is-git-repository";
isGit(); // true or false of process.cwd()
isGit("any/git/repo"); // true or falseMIT © Jan Peer Stöcklmair