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