git-refs

finds all references of a git repository

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
git-refs
611.1.38 years ago8 years agoMinified + gzip package size for git-refs in KB

Readme

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