# 使用 Homebrew 安装 cascadia

查看 cascadia 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:cascadia
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cascadia
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:cascadia
- **软件包管理器:** Homebrew
- **版本:** 1.5.1
- **来源摘要:** Go cascadia package command-line CSS selector
- **主页:** <https://github.com/suntong/cascadia>
- **仓库:** <https://github.com/suntong/cascadia>
- **最后更新:** 2026-07-27T19:20:56+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cascadia (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.5.1
## 项目历史与用法

Cascadia is a Go command-line wrapper around the Go Cascadia CSS selector package, aimed at testing selectors and extracting HTML/XML content without writing a Go program.

### 项目历史

The project began publicly in 2016 under Tong Sun's GitHub account. Its README says it started as a thin wrapper around Andy Balholm's Go Cascadia package and grew into a more capable selector-testing and extraction tool.

### 采用历史

The official README documents binary releases, Debian/Ubuntu installation, distro packages through the author's Cloudsmith repository, and Homebrew packaging. GitHub metadata shows a small but active open-source utility with wiki documentation and cross-platform release artifacts.

Homebrew analytics show modest niche use, with 190 installs in the last 365 days in the formula API.

### 使用方式

Users pass an input file or stdin, a CSS selector, and an output target. The tool supports text output, raw output, block and piece extraction, wrapped HTML output, and CSV/TSV-style table output for scraping workflows.

### 为什么软件包爱好者会关心

Cascadia is package-nerd useful because it exposes a library-grade CSS selector engine as a tiny shell tool. It fits scripts, data-cleaning one-liners, and package tests where pulling in a browser or a larger scraper would be excessive.

### 时间线

- 2016: Public GitHub repository created and copyright range begins in the CLI help.
- 2025: README example shows version 1.5.0 built on 2025-11-10.
- 2026: Homebrew formula packages v1.5.1 and tracks the GitHub release tarball.

### Related projects

- andybalholm/cascadia provides the Go CSS selector package wrapped by this CLI.
- andrew-d/goscrape is cited by the README as an influence for block and piece extraction concepts.

### 来源

- <https://api.github.com/repos/suntong/cascadia>
- <https://github.com/suntong/cascadia>
- <https://github.com/suntong/cascadia/wiki>
- <https://github.com/suntong/cascadia#readme>
- <https://formulae.brew.sh/api/formula/cascadia.json>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/cascadia.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cascadia.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
