1.1.3 • Published 9 years ago

git-refs v1.1.3

Weekly downloads
8,144
License
MIT
Repository
github
Last release
9 years ago

git-refs

Build Status

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

The MIT License (MIT)

Copyright © 2015 Christoph Witzko