Package Exports
- node-git-current-branch
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-git-current-branch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-git-current-branch
Get the current git branch name using Node.js
npm install node-git-current-branch --save
const getCurrentBranchName = require('node-git-current-branch');
getCurrentBranchName(); //branch name or false