Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/christophwitzko/git-refs
- Owner: christophwitzko
- Created: 2015-02-09T20:34:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-30T07:07:11.000Z (almost 8 years ago)
- Last Synced: 2024-10-13T18:25:45.517Z (25 days ago)
- Topics: git, javascript, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/git-refs
- Size: 142 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)