@axelrindle/is-git-repository
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

CI Codacy Badge Codacy Badge

node-is-git-repository

Node.JS package for testing whether a given directory belongs to a git repository.

Installation

$ npm i @axelrindle/is-git-repository

Usage

const isGitRepository = require('@axelrindle/is-git-repository');

(async () => {
  await isGitRepository(); // fails when not in a valid git repository
  // ...
})();

Check the wiki for a full API overview.

License

MIT

Package Sidebar

Install

npm i @axelrindle/is-git-repository

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

5.19 kB

Total Files

6

Last publish

Collaborators

  • axelrindle