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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.3
    2,636
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.3
    2,636
  • 1.1.2
    8
  • 1.1.1
    21
  • 1.1.0
    8
  • 1.0.0
    21

Package Sidebar

Install

npm i git-refs

Weekly Downloads

2,694

Version

1.1.3

License

MIT

Last publish

Collaborators

  • christophwitzko