An open API service indexing awesome lists of open source software.

https://github.com/afeiship/next-git-branch

Get git branches infomation.
https://github.com/afeiship/next-git-branch

all branch git jswork local next package remote

Last synced: 2 months ago
JSON representation

Get git branches infomation.

Awesome Lists containing this project

README

        

# next-git-branch
> Get git branches infomation.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-git-branch
```

## usage
```js
import '@jswork/next-git-branch';

nx.gitBranch()

/*
{
current: 'feature/page-reload',
all: [
'develop',
'feature/addContent',
'feature/page-reload',
'staging',
'origin/beta',
'origin/develop',
'origin/feature/addContent',
'origin/feature/contentLibrary',
'origin/feature/independentBiz',
'origin/feature/page-reload',
'origin/feature/pptPreview',
'origin/master',
'origin/staging'
],
locals: [ 'develop', 'feature/addContent', 'feature/page-relad', 'staging' ],
remotes: [
'beta',
'develop',
'feature/addContent',
'feature/contentLibrary',
'feature/independentBiz',
'feature/page-reload',
'feature/pptPreview',
'master',
'staging'
]
}
*/
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-git-branch/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-git-branch
[version-url]: https://npmjs.org/package/@jswork/next-git-branch

[license-image]: https://img.shields.io/npm/l/@jswork/next-git-branch
[license-url]: https://github.com/afeiship/next-git-branch/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-git-branch
[size-url]: https://github.com/afeiship/next-git-branch/blob/master/dist/next-git-branch.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-git-branch
[download-url]: https://www.npmjs.com/package/@jswork/next-git-branch