Gets the current Git branch in Node. Nothing else, nothing more.
const branch = require('node-current-branch')
const branchName = branch()
console.log(branchName)| Name | Name | Last commit date | ||
|---|---|---|---|---|
Gets the current Git branch in Node. Nothing else, nothing more.
const branch = require('node-current-branch')
const branchName = branch()
console.log(branchName)