https://github.com/dacrol/node-current-branch
Gets the current Git branch in Node
https://github.com/dacrol/node-current-branch
git javascript nodejs
Last synced: 2 months ago
JSON representation
Gets the current Git branch in Node
- Host: GitHub
- URL: https://github.com/dacrol/node-current-branch
- Owner: Dacrol
- License: mit
- Created: 2018-03-05T18:59:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T20:22:55.000Z (over 8 years ago)
- Last Synced: 2024-04-29T12:21:03.442Z (about 2 years ago)
- Topics: git, javascript, nodejs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/node-current-branch
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## [node-current-branch](https://www.npmjs.com/package/node-current-branch)
Gets the current Git branch in Node. Nothing else, nothing more.
### Usage:
```javascript
const branch = require('node-current-branch')
const branchName = branch()
console.log(branchName)
```