パッケージの詳細

is-git-repository

JPeer264918kMIT3.0.0

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

is, git, repository, repo

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 - January, 14 2025

  • 29badf4 Feat: add esm (JPeer264)

2.0.0 - July, 23 2020

  • cc8789d Docs: master -> main (JPeer264)
  • c3e70b1 Docs: update badges (JPeer264)
  • 891136f Feat: update dependencies | TS support | drop node lower v10 (JPeer264)