# 使用 Homebrew 安装 jsawk

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

## 安装

```sh
sudo av install brew:jsawk
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jsawk
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:jsawk
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/jsawk>
- **版本:** 1.4
- **来源摘要:** Like awk, but for JSON, using JavaScript objects and arrays
- **主页:** <https://github.com/micha/jsawk>
- **仓库:** <https://github.com/micha/jsawk>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/micha/jsawk/archive/refs/tags/1.4.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- jsawk (cli)
- jsawk (别名)

## 依赖

- spidermonkey

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.4
- 本地数据: OK
- 上游仓库: https://github.com/micha/jsawk
- 检测到的最新版本: 1.4 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

jsawk is a small command-line filter that applies awk-like pipeline habits to JSON data by evaluating JavaScript over objects read from standard input.

### 项目历史

The GitHub repository was created in May 2009. Its README frames the tool as awk for JSON: input is parsed into arrays and objects, JavaScript expressions filter or transform the data, and output returns to stdout for shell pipelines.

### 采用历史

jsawk remained a compact Unix-style tool rather than a large ecosystem. Homebrew packages version 1.4 from the GitHub tag archive, and the repository has enough stars and forks to show durable interest among shell users who wanted JSON manipulation before jq became the default answer.

### 使用方式

Typical usage is piping REST API JSON into jsawk, selecting or transforming fields with JavaScript, and either emitting JSON again or printing custom text for another command in the pipeline.

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

jsawk is a useful historical waypoint in the JSON-on-the-command-line story: it shows the pre-jq period when developers tried to extend familiar text filters with JavaScript object access instead of adopting a purpose-built JSON query language.

### 时间线

- 2009: GitHub repository created.
- 2010s: Homebrew packaged jsawk as a JSON-aware shell filter.
- 2026: Homebrew continued to package the 1.4 tag archive.

### Related projects

- Related tools include awk, jq, gron, JSON.sh, fx, jc, and the author's resty command-line REST client.

### 来源

- <https://api.github.com/repos/micha/jsawk>
- <https://formulae.brew.sh/formula/jsawk>
- <https://github.com/micha/jsawk>
- <https://github.com/micha/resty>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** jsawk
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [spidermonkey](https://pkg.so/zh-hans/brew/spidermonkey/) - Runtime dependency declared by Homebrew.
- [jshon](https://pkg.so/zh-hans/brew/jshon/) - Shares pkgdb curated category or tags: cli, data-processing, developer-tools, json, json-tools.
- [json2tsv](https://pkg.so/zh-hans/brew/json2tsv/) - Shares pkgdb curated category or tags: cli, data-processing, developer-tools, json.
- [mongosh](https://pkg.so/zh-hans/brew/mongosh/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript.
- [rich-cli](https://pkg.so/zh-hans/brew/rich-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, json.
- [jp](https://pkg.so/zh-hans/brew/jp/) - Shares pkgdb curated category or tags: cli, developer-tools, json.
- [nuxi](https://pkg.so/zh-hans/brew/nuxi/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript.
- [json2hcl](https://pkg.so/zh-hans/brew/json2hcl/) - Shares pkgdb curated category or tags: cli, developer-tools, json.
- [yq](https://pkg.so/zh-hans/brew/yq/) - Shares pkgdb curated category or tags: cli, data-processing, developer-tools, json.
- [gron](https://pkg.so/zh-hans/brew/gron/) - Both packages work with overlapping file formats or content types. Shared terms: cli, data, data-processing, developer, developer-tools.
- [jaq](https://pkg.so/zh-hans/brew/jaq/) - Both packages work with overlapping file formats or content types. Shared terms: cli, data, data-processing, developer, developer-tools.

## Combined YAML source

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


## 来源

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