git-refs
v1.1.3
Published
finds all references of a git repository
Downloads
144,625
Readme
git-refs
Install
$ npm install -g git-refs
Example
var gitRefs = require('git-refs')
gitRefs('/path/to/.git', function (err, data) {
if (err) return console.log(err)
console.dir(data)
// data is a path-object (http://git.io/Nh7p)
console.log('master:', data.get('heads/master'))
console.dir(data.get('tags'))
console.dir(data.dump())
})
Licence
Copyright © 2015 Christoph Witzko