Node.js package to get information about the current status of a git working copy.
This package was created to be used in the context of Terraform. See terraform-ppwcode-modules.

Installation
To install, do
> yarn add \@ppwcode/node-gitinfo
or
> npm install --save \@ppwcode/node-gitinfo
Usage in code
When used in other code, use
const GitInfo = require("@ppwcode/node-gitinfo)
You can tag with
const tagGitRepo = require("@ppwcode/node-gitinfo/tagGitRepo)
CLI
gitinfo.js is a CLI tool that uses this code. See
> node ./bin/gitinfo.js -h
for help. This program is installed in npm as gitinfo.
> node ./bin/gitinfo.js gi
is intended for use in a Terraform external data source provider. It returns JSON.
Style

This code uses Standard coding style.