mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-12 18:49:41 -04:00
32 lines
527 B
Markdown
32 lines
527 B
Markdown
# @pnpm/network.git-utils
|
|
|
|
> Utilities for git
|
|
|
|
<!--@shields('npm')-->
|
|
[](https://npmx.dev/package/@pnpm/network.git-utils)
|
|
<!--/@-->
|
|
|
|
## Installation
|
|
|
|
```
|
|
pnpm add @pnpm/network.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 |