Exports the hash of the commit referenced by ".git/HEAD", relative to the top-level module
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
geisha.js
package.json
readme.mdown

readme.mdown

geisha (or gitsha if you squint) exports a string which should be equal to the output of running git rev-parse HEAD in the top-level module's directory, or undefined if no git repository could be found.

Usage

require('geisha'); // -> "df13c2005619483b0c6e41507a1a3f97393a4e11"

Installation

npm install geisha

License

Public domain.