dotgit

A simple git repository utility for getting branch information.

Usage no npm install needed!

<script type="module">
  import dotgit from 'https://cdn.skypack.dev/dotgit';
</script>

README

DotGit (.git)

A simple git repository utility.

Install

npm install dotgit --save-dev

Usage

import git from 'dotgit';

console.log(git.branch); // master
console.log(git.head); // c5275e52a7871f6d2fec5b27506d337c6939ffad
console.log(git.short); // c5275e5

License

MIT License.