Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Get git information for your node.js app while it is running
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
README.md
package.json

README.md

gitinfo

Install:

npm install gitinfo

Get git information for your node.js app while it is running. Use like so:

var gitinfo = require(__dirname + '/../lib/index.js');

gitinfo.all(function(info){
  console.log(info); // Here is your info object, do as you please
});

Here's what your info object looks like:

{
  branch: "master",
  commit: "30948c8c9748387cca1710723ec70af3db6529f5",
  commitMsg: "finished test for /api/get_timezones"
}
Something went wrong with that request. Please try again.