2.0.0 • Published 3 years ago

@axelrindle/is-git-repository v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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