Package Exports
- is-git-repository
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-git-repository) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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