https://github.com/clownvary/git-ref-tags
A lib to get tags and hash from remote git repository
https://github.com/clownvary/git-ref-tags
git git-tag
Last synced: about 1 month ago
JSON representation
A lib to get tags and hash from remote git repository
- Host: GitHub
- URL: https://github.com/clownvary/git-ref-tags
- Owner: clownvary
- License: mit
- Created: 2018-10-08T08:40:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-10T07:26:53.000Z (over 7 years ago)
- Last Synced: 2025-10-03T19:44:06.627Z (9 months ago)
- Topics: git, git-tag
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# git-ref-tags
[](https://www.npmjs.com/package/git-ref-tags)
[](https://travis-ci.com/clownvary/git-ref-tags)
[](https://codecov.io/gh/clownvary/git-ref-tags)
> A lib to get tags and hash from remote git repository(github/gitlab)
## Install
> Need install git before you using this lib
```
$ npm install --save git-ref-tags
```
## Usage
```js
const gitRefTags = require('git-ref-tags');
const tags = gitRefTags('https://github.com/clownvary/git-ref-tags');
// tags like below
[
{ hash: '62123f682d00f40b6ebaf2dc591e25c00a9201fe',
name: 'v0.1.0'
},
{ hash: '8b3940bc0cce7e6c1a64af08edd8a75fedbdc3d1',
name: 'v0.2.0'
}
]
```
## API
### gitRefTags(url)
Returns a `Array[object]` with the Git tags and hash.
#### url
Type: `string`
Git repo URL.
## License
MIT ©