$ npm install @pnpm/git-utils
Utilities for git
pnpm add @pnpm/git-utils
'use strict'
const { getCurrentBranchName } = require('@pnpm-utils').default
main()
async function main() {
const branchName = await getCurrentBranch();
console.log(branchName)
}
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE