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)
Gets the current Git branch in Node
Gets the current Git branch in Node. Nothing else, nothing more.
const branch = require('node-current-branch')
const branchName = branch()
console.log(branchName)