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
$ cnpm 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

  • 2.0.0                                ...           latest (6 years ago)

5 Versions

  • 2.0.0                                ...           6 years ago
  • 1.1.1                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (17)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |