# 使用 Homebrew 安装 clojurescript

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

## 安装

```sh
sudo av install brew:clojurescript
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clojurescript
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:clojurescript
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/clojurescript>
- **版本:** 1.12.134
- **来源摘要:** Clojure to JS compiler
- **主页:** <https://github.com/clojure/clojurescript>
- **仓库:** <https://github.com/clojure/clojurescript>
- **上游文档:** <https://clojurescript.org/guides/quick-start>
- **许可证:** EPL-1.0
- **源码归档:** <https://github.com/clojure/clojurescript/releases/download/r1.12.134/cljs.jar>
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- cljsc (cli)
- cljsc (别名)

## 依赖

- openjdk

## 安装行为

- post-install 钩子: 未定义
- 注意事项: This formula is useful if you need to use the ClojureScript compiler directly. For a more integrated workflow use Leiningen, Boot, or Maven.
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 1.12.134
- 本地数据: OK
- 上游仓库: https://github.com/clojure/clojurescript
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

ClojureScript is the Clojure-family compiler that targets JavaScript. Its official rationale presents JavaScript as the universal host platform and ClojureScript as a way to bring Clojure's data structures, functional programming, macros, reader, polymorphism, and state discipline to JavaScript environments.

### 项目历史

The official GitHub repository was created in July 2011. The ClojureScript rationale describes the project as replacing direct JavaScript authoring with Clojure while adopting Google Closure Library and Closure Compiler strategy for production-quality libraries and whole-program optimization.

The official differences page frames ClojureScript as sharing Clojure's identity model, immutable persistent collections, protocols, and REPL-driven development, with JavaScript-specific host interop and compilation constraints.

### 采用历史

ClojureScript adoption followed the rise of browser and JavaScript-hosted applications. Official docs include quick-start workflows for browser REPLs, Node.js execution, cljs.main, deps.edn dependencies, and standalone JAR use on Windows.

The official news archive shows continuing release activity from at least 2017 through 2026, including posts on node_modules integration, code splitting, command-line support, JavaScript tool integration, and 1.12.x releases. The supplied input lists Homebrew distribution for the cljsc executable package.

### 使用方式

The official quick start shows a deps.edn dependency on org.clojure/clojurescript and use of clj -M --main cljs.main to compile a namespace and start a REPL. It also documents running on Node.js and using a standalone cljs.jar on Windows.

The official reference documentation covers compiler options, REPL options, dependencies, foreign dependency packaging, advanced compilation, bootstrapping, Google Closure Library, source maps, JavaScript module support, JavaScript APIs, and async functions.

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

ClojureScript is package-nerd significant because it sits at the junction of Maven-style Clojure dependencies, JavaScript module interop, and Closure Compiler advanced optimization. Its package is not just a runtime but a compiler toolchain.

For package managers, the interesting bit is that a small CLI entry point such as cljsc represents a much larger cross-ecosystem compiler stack: Clojure, JVM tooling, cljs.main, Closure libraries, Closure Compiler, JavaScript modules, browser REPLs, and Node.js targets.

### 时间线

- 2011: Official GitHub repository created.
- 2017: Official ClojureScript news archive starts with posts on releases, code splitting, and node_modules integration.
- 2018: Official news announced ClojureScript command-line support.
- 2020: Official news discussed JavaScript tool integration and bundle targets.
- 2025: Official quick start used org.clojure/clojurescript 1.12.145 as the tutorial dependency.
- 2026: Official news announced ClojureScript 1.12.145 on May 7, 2026.

### Related projects

- Related projects include Clojure, cljs.main, Google Closure Library, Google Closure Compiler, Node.js, ClojureScript browser REPLs, and JavaScript module ecosystems. clojure-lsp also treats ClojureScript as a first-class analysis target.

### 来源

- <https://clojurescript.org/about/rationale>
- <https://clojurescript.org/about/differences>
- <https://clojurescript.org/about/closure>
- <https://clojurescript.org/reference/documentation>
- <https://clojurescript.org/guides/quick-start>
- <https://clojurescript.org/news>
- <https://github.com/clojure/clojurescript/blob/master/changes.md>


## 安全说明

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:** clojurescript
- **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://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openjdk](https://www.automicvault.com/zh-hans/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [coffeescript](https://www.automicvault.com/zh-hans/pkg/brew/coffeescript/) - Shares av.db curated category or tags: cli, compiler, javascript, language-runtime, programming-language.
- [purescript](https://www.automicvault.com/zh-hans/pkg/brew/purescript/) - Shares av.db curated category or tags: cli, compiler, javascript, language-runtime, programming-language.
- [typescript](https://www.automicvault.com/zh-hans/pkg/brew/typescript/) - Shares av.db curated category or tags: cli, compiler, javascript, language-runtime, programming-language.
- [algol68g](https://www.automicvault.com/zh-hans/pkg/brew/algol68g/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [ats2-postiats](https://www.automicvault.com/zh-hans/pkg/brew/ats2-postiats/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [ballerina](https://www.automicvault.com/zh-hans/pkg/brew/ballerina/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [c3c](https://www.automicvault.com/zh-hans/pkg/brew/c3c/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [chapel](https://www.automicvault.com/zh-hans/pkg/brew/chapel/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [frege](https://www.automicvault.com/zh-hans/pkg/brew/frege/) - Local package facts share a topical domain. Shared terms: cli, compiler, language, language-runtime, openjdk.
- [erg](https://www.automicvault.com/zh-hans/pkg/brew/erg/) - Local package facts share a topical domain. Shared terms: cli, compiler, language, language-runtime, programming.
- [hy](https://www.automicvault.com/zh-hans/pkg/brew/hy/) - Local package facts share a topical domain. Shared terms: cli, compiler, language, language-runtime, programming.

## Combined YAML source

View the package source record on GitHub. [combined/clojurescript.yml](https://github.com/automic-vault/db/blob/main/combined/clojurescript.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
