is-git-repository
A tool to check if a specific path is a git repository
Last updated 6 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 Build status Coverage Status

Checks synchronously if a specific directory is a git repository

Installation

$ npm i is-git-repository --save

or

$ yarn add is-git-repository

Usage

const isGit = require('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 (2)
Dev Dependencies (17)
Dependents (1)

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