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: about 2 months ago
JSON representation
Get git branches infomation.
- Host: GitHub
- URL: https://github.com/afeiship/next-git-branch
- Owner: afeiship
- License: mit
- Created: 2020-10-30T01:42:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T03:55:19.000Z (over 5 years ago)
- Last Synced: 2025-09-21T20:18:19.661Z (9 months ago)
- Topics: all, branch, git, jswork, local, next, package, remote
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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