Package detail

node-current-branch

Dacrol3.3kMIT1.0.1

Gets the current Git branch in Node

readme

node-current-branch

Gets the current Git branch in Node. Nothing else, nothing more.

Usage:

const branch = require('node-current-branch')

const branchName = branch()
console.log(branchName)