is-git

check if dir is git directory or not
Install
$ npm install --save is-gitExample
JavaScript
var isGit = require('is-git');
isGit("/path/folder"); // or false
isGit("*"); //true or false
isGit(); //true or falseCommand Line reference
$ npm install --g git-scope-config
$ is-git --path path/to/git/folderMethods
var isGit = require('is-git');
isGit("/path/folder"); // or false
isGit("*"); //true or false
isGit(); //true or falseisGit([path], cb)
Check if current folder is git folder or not
Run Test
npm testContribute or Report Issue
For bugs and feature requests, please create an issue.
License
MIT © Yashprit