is-git-repository
A tool to check if a specific path is a git repository
Last updated 2 years ago by jpeer .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install is-git-repository 
SYNC missed versions from official npm registry.

is-git-repository

Build Status Coverage Status

Checks synchronously if a specific directory is a git repository

Installation

$ npm i is-git-repository --save

Usage

import isGit from "is-git-repository";

isGit(); // true or false of process.cwd()
isGit("any/git/repo"); // true or false

LICENSE

MIT © Jan Peer Stöcklmair

Current Tags

  • 3.0.0                                ...           latest (2 years ago)

6 Versions

  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           6 years ago
  • 1.1.1                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 23
Today 0
This Week 0
This Month 14
Last Day 0
Last Week 6
Last Month 0
Dependencies (1)
Dev Dependencies (7)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE