1.0.1 • Published 7 years ago
node-current-branch v1.0.1
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. Nothing else, nothing more.
const branch = require('node-current-branch')
const branchName = branch()
console.log(branchName)