Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/christophwitzko/git-refs

finds all references of a git repository
https://github.com/christophwitzko/git-refs

git javascript npm-package

Last synced: 23 days ago
JSON representation

finds all references of a git repository

Awesome Lists containing this project

README

        

# git-refs
[![Build Status](https://travis-ci.org/christophwitzko/git-refs.svg)](https://travis-ci.org/christophwitzko/git-refs)

## Install

$ npm install -g git-refs

## Example

```javascript
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)](http://opensource.org/licenses/MIT)

Copyright © 2015 [Christoph Witzko](https://twitter.com/christophwitzko)