pnpm/packages/git-utils
await-ovo 77c754b10a
chore: eslint issues (#6123)
2023-02-23 12:12:32 +02:00
..
src feat: add git-branch-lockfile config to generate lockfile in each branch (#4475) 2022-06-14 23:31:16 +03:00
test feat: add git-branch-lockfile config to generate lockfile in each branch (#4475) 2022-06-14 23:31:16 +03:00
CHANGELOG.md chore(release): 7.3.0 2022-06-18 23:31:44 +03:00
README.md feat: add git-branch-lockfile config to generate lockfile in each branch (#4475) 2022-06-14 23:31:16 +03:00
example.js feat: add git-branch-lockfile config to generate lockfile in each branch (#4475) 2022-06-14 23:31:16 +03:00
jest.config.js feat: add git-branch-lockfile config to generate lockfile in each branch (#4475) 2022-06-14 23:31:16 +03:00
package.json chore: eslint issues (#6123) 2023-02-23 12:12:32 +02:00
tsconfig.json fix: remove `suppressImplicitAnyIndexErrors` from typescript settings (#5991) 2023-01-28 18:19:26 +02:00
tsconfig.lint.json refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00

README.md

@pnpm/git-utils

Utilities for git

npm version

Installation

pnpm add @pnpm/git-utils

Usage

'use strict'
const { getCurrentBranchName } = require('@pnpm-utils').default

main()
async function main() {
  const branchName = await getCurrentBranch();
  console.log(branchName)
}

License

MIT