Skip to content

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

License

Notifications You must be signed in to change notification settings

JPeer264/node-is-git-repository

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published