is-git

1.0.0 • Public • Published

is-git NPM version Build Status

check if dir is git directory or not

Install

$ npm install --save is-git

Example

JavaScript

var isGit = require('is-git');
isGit("/path/folder"); // or false
 
isGit("*"); //true or false
 
isGit(); //true or false

Command Line reference

$ npm install --g git-scope-config
$ is-git --path path/to/git/folder

Methods

var isGit = require('is-git');
isGit("/path/folder"); // or false
 
isGit("*"); //true or false
 
isGit(); //true or false

isGit([path], cb)

Check if current folder is git folder or not

Run Test

npm test

Contribute or Report Issue

For bugs and feature requests, please create an issue.

License

MIT © Yashprit

Package Sidebar

Install

npm i is-git

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • yashprit