git-refs

1.1.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i git-refs

Weekly Downloads

2,133

Version

1.1.3

License

MIT

Last publish

Collaborators

  • christophwitzko