Node Git Info
Node module that creates a git.properties file with information about the current commit. It is based on maven git commit id plugin for Java.
Usage
$ npm install -g node-git-info$ node-git-info [options] -d, --directory Directory to save git.properties file to .
It will save a file named git.properties
. If the directory option isn't passed, then default location for saving the git.properties file will be the current working directory of the Node.js process.
Example output:
git.commit.id.abbrev=42954d1git.commit.user.email=user@email.comgit.commit.message.full=first commitgit.commit.id=42954d1fe6285fea65ba81ea39d71d5b75f9ade0git.commit.message.short=first commitgit.commit.user.name=User Namegit.branch=mastergit.commit.time=2016-11-20T11:48:42.000Z