is-git-init
v2.0.0
Published
Check if git has been initialized in a repo.
Downloads
2
Readme
is-git-init
Check if git has been initialized in a repo.
Install
npm i -D is-git-init
Usage
const isGitInit = require('is-git-init')
isGitInit() // looks for .git directory in `process.cwd()`
// OR
isGitInit(currentDirectory) // looks for .git directory in current directory
note
Use node-path-choice
package to set process.env.NODE_PATH
in index.js
and Gruntfile.js
.
License
MIT © 2018 Anubhav Saini