2024-08-24 06:20:37 +08:00
|
|
|
<h1 align="center">setup-brew</h1>
|
|
|
|
<p>
|
2024-08-29 05:12:56 +08:00
|
|
|
<a href="https://www.npmjs.com/package/setup-brew" target="_blank">
|
|
|
|
<img alt="Version" src="https://img.shields.io/npm/v/setup-brew.svg">
|
|
|
|
</a>
|
2024-08-24 06:20:37 +08:00
|
|
|
<img src="https://img.shields.io/badge/node-%3E%3D12-blue.svg" />
|
|
|
|
<a href="#" target="_blank">
|
|
|
|
<img alt="License: Apache--2.0" src="https://img.shields.io/badge/License-Apache--2.0-yellow.svg" />
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
> Setup brew and brew packages
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
```sh
|
|
|
|
npm install --save setup-brew
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
<!-- INSERT GENERATED DOCS START -->
|
|
|
|
|
|
|
|
### `InstallationInfo` (type)
|
|
|
|
|
|
|
|
The information about an installation result
|
|
|
|
|
|
|
|
### `SetupBrewOptions` (type)
|
|
|
|
|
|
|
|
### `setupBrew` (function)
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
- options (`SetupBrewOptions`)
|
|
|
|
|
|
|
|
**returns:** Promise<InstallationInfo>
|
|
|
|
|
|
|
|
### `getBrewBinDir` (function)
|
|
|
|
|
2024-09-08 20:46:08 +08:00
|
|
|
Get the path to the bin directory of brew
|
|
|
|
|
|
|
|
**returns:** string
|
|
|
|
|
|
|
|
### `getBrewDir` (function)
|
|
|
|
|
2024-08-24 06:20:37 +08:00
|
|
|
Get the path where brew is installed
|
|
|
|
|
2024-09-08 20:46:08 +08:00
|
|
|
**returns:** "/opt/homebrew" | "/usr/local" | "/home/linuxbrew/.linuxbrew"
|
2024-08-24 06:20:37 +08:00
|
|
|
|
|
|
|
### `BrewPackOptions` (type)
|
|
|
|
|
|
|
|
### `installBrewPack` (function)
|
|
|
|
|
|
|
|
A function that installs a package using brew
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
2024-08-29 05:12:56 +08:00
|
|
|
- name (`string`) - The name of the package
|
|
|
|
- version (`string`) - The version of the package (optional)
|
|
|
|
- options - The options for installing the package
|
2024-08-24 06:20:37 +08:00
|
|
|
- givenOptions (`BrewPackOptions`)
|
|
|
|
|
|
|
|
**returns:** Promise<InstallationInfo>
|
|
|
|
|
|
|
|
<!-- INSERT GENERATED DOCS END -->
|
|
|
|
|
|
|
|
## 🤝 Contributing
|
|
|
|
|
|
|
|
You can sponsor my work here:
|
|
|
|
|
|
|
|
https://github.com/sponsors/aminya
|
|
|
|
|
|
|
|
Pull requests, issues and feature requests are welcome.
|
|
|
|
See the [Contributing guide](https://github.com/aminya/setup-cpp/blob/master/CONTRIBUTING.md).
|