@sidekick/git-helpers

git helpers that work with the git CLI. Probably only useful if you've got the same constraints as SK: x-platform without native deps

Usage no npm install needed!

<script type="module">
  import sidekickGitHelpers from 'https://cdn.skypack.dev/@sidekick/git-helpers';
</script>

README

sidekick-git-helpers

Build Status

git helpers that work with the git CLI. Probably only useful if you've got the same constraints as SK: x-platform without native deps.

Promise based API;

Installation

npm install --save sidekick-git-helpers

Usage

var helpers = require("sidekick-git-helpers");

helpers.findRootGitRepo(process.cwd())
.then((r) => console.log(`the enclosing git repo is: ${r}`))
.catch((e) => console.error(e));