npm.io
3.0.0 • Published 1 year ago

is-git-repository

Licence
MIT
Version
3.0.0
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
10

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

Keywords