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

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

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)
```