Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Check if git has been initialized in a repo.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages