git-refs

finds all references of a git repository

MIT 5 个版本
安装
npm install git-refs
yarn add git-refs
pnpm add git-refs
bun add git-refs
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

版本列表
1.1.3 2015-06-08
1.1.2 2015-02-11
1.1.1 2015-02-10
1.1.0 2015-02-10
1.0.0 2015-02-10