2.0.0 • Published 6 years ago

is-git-init v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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