Check if the given directory is a git repo
const isGitRepo = require('is-git-repo');
isGitRepo(path).then(result => console.log(result))
MIT © Vivek Poddar
Check if the given directory is a git repo
const isGitRepo = require('is-git-repo');
isGitRepo(path).then(result => console.log(result))
MIT © Vivek Poddar
npm i is-git-directory
1
1.0.0
MIT