$ cnpm install git-head
$ npm install -g git-head
var gitHead = require('git-head')
gitHead('/path/to/.git', function (err, hash) {
if (err) return console.log(err)
console.log('HEAD:', hash)
})
Copyright © 2015 Christoph Witzko
Copyright 2013 - present © cnpmjs.org | Home |