mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-28 12:01:37 -04:00
Co-authored-by: Zoltan Kochan <z@kochan.io> Co-authored-by: David Michon <dmichon@microsoft.com>
32 lines
500 B
Markdown
32 lines
500 B
Markdown
# @pnpm/git-utils
|
|
|
|
> Utilities for git
|
|
|
|
<!--@shields('npm')-->
|
|
[](https://www.npmjs.com/package/@pnpm/git-utils)
|
|
<!--/@-->
|
|
|
|
## Installation
|
|
|
|
```
|
|
pnpm add @pnpm/git-utils
|
|
```
|
|
|
|
## Usage
|
|
|
|
<!--@example('./example.js')-->
|
|
```js
|
|
'use strict'
|
|
const { getCurrentBranchName } = require('@pnpm-utils').default
|
|
|
|
main()
|
|
async function main() {
|
|
const branchName = await getCurrentBranch();
|
|
console.log(branchName)
|
|
}
|
|
```
|
|
<!--/@-->
|
|
|
|
# License
|
|
|
|
MIT |