is-git-repository

A tool to check if a specific path is a git repository

MIT 6 个版本
安装
npm install is-git-repository
yarn add is-git-repository
pnpm add is-git-repository
bun add is-git-repository
README

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

版本列表
3.0.0 2025-01-14
2.0.0 2020-07-23
1.1.1 2017-05-06
1.1.0 2017-05-04
1.0.1 2017-03-23
1.0.0 2017-03-18