# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 alexjs

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

## 安装

```sh
sudo av install brew:alexjs
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install alexjs
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install alex
```

  证据: MacPorts ports tree: devel/alex/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add alex
```

  证据: Alpine Linux edge package indexes: alex from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install alex
```

  证据: Debian stable package indexes: alex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install alex
```

  证据: Fedora Rawhide package metadata: alex from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#alex
```

  证据: nixpkgs package indexes: alex from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S alex
```

  证据: Arch Linux sync databases: alex from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install alex
```

  证据: openSUSE Tumbleweed package metadata: alex from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:alexjs
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/alexjs>
- **版本:** 11.0.1
- **来源摘要:** Catch insensitive, inconsiderate writing
- **主页:** <https://alexjs.com>
- **仓库:** <https://github.com/get-alex/alex>
- **上游文档:** <https://alexjs.com>
- **许可证:** MIT
- **源码归档:** <https://github.com/get-alex/alex/archive/refs/tags/11.0.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- alex (cli)
- alex (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

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

alex is a command-line and JavaScript API tool for catching insensitive or inconsiderate writing. It belongs to the text-linting ecosystem around unified, retext, and markdown tooling, but its subject matter is inclusive language rather than syntax style.

### 项目历史

The official website and README describe alex as a tool that flags gender-favoring, polarizing, race-related, ableist, profane, or otherwise unequal phrasing and suggests alternatives. It reads plain text, Markdown, MDX, and HTML, and exposes both a CLI and JavaScript APIs.

The README records preliminary work in 2015, Titus Wormer as author, and an origin story crediting a raised problem and Sindre Sorhus's inspiration. The alexjs.com page carries a 2015 publication date and presents an online demo, CLI examples, and integrations.

Technically, alex composes existing natural-language processing packages: the README points users to `retext-equality` and `retext-profanities` for the rules and uses VFile messages as the API result shape. That places it squarely inside the unified/retext package family.

### 采用历史

alex's official README lists integrations for Sublime, Gulp, Slack, Ember, Probot, GitHub Actions, Vim, browser extensions, Contentful, Figma, and VS Code. The official site also lists earlier editor and workflow integrations.

The supplied package facts show unusually broad distribution for a Node writing tool: Homebrew as `alexjs`, and distro packages as `alex` in apk, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE. That breadth reflects a CLI useful in documentation repos, CI checks, and editorial workflows.

### 使用方式

Typical CLI usage is `alex example.md` or `alex .`, with warnings reported by source position, rule id, and suggested wording. The README also documents Markdown comments for inline disables and enables.

Configuration can live in `.alexrc`, `.alexrc.yml`, `.alexrc.yaml`, `.alexrc.js`, or an `alex` field in `package.json`; directory scanning can be controlled with `.alexignore`. API users call functions such as `markdown`, `mdx`, `html`, or `text` and inspect returned VFile messages.

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

alex is package-nerd significant because it helped make inclusive-language checking feel like linting: install a CLI, add a dotfile, wire it into CI, and treat prose issues like structured diagnostics.

It also shows why package naming matters. The upstream project and executable are `alex`, while Homebrew packages it as `alexjs`, likely to avoid name ambiguity in a global formula namespace.

### 时间线

- 2015: Preliminary work and publication date recorded by official README and alexjs.com metadata.
- 2015: Launch attracted social and press attention according to the README origin story.
- 2015 onward: Editor, build-tool, chat, GitHub, and browser integrations accumulated around the CLI.
- Current README: alex supports plain text, Markdown, MDX, and HTML inputs with CLI and JavaScript APIs.

### Related projects

- The official README names retext-equality and retext-profanities as rule sources and VFile as the diagnostics container.
- alex sits near prose linters, markdown tooling, and editor/CI lint integrations rather than conventional grammar checkers.

### 来源

- <https://alexjs.com>
- <https://github.com/get-alex/alex#readme>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .alexrc, .alexrc.yml, .alexrc.yaml, .alexrc.js, package.json#alex, .alexignore
## 源数据库详情

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

## 其他软件包管理器记录

- MacPorts - alex: installed executable or alias match | MacPorts ports tree: devel/alex/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - alex - 3.4.0.1-1+b1: installed executable or alias match | Debian stable package indexes: alex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lexical analyser generator for Haskell | http://www.haskell.org/alex/
- Nix - alex: installed executable or alias match | nixpkgs package indexes: alex from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - alex - 3.3.0.0-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: alex from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lexical analyser generator for Haskell | http://www.haskell.org/alex/
- apk - alex - 3.5.4.0-r1: installed executable or alias match | Alpine Linux edge package indexes: alex from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Lexical analyser generator for Haskell | https://www.haskell.org/alex/
- apk - alex-doc - 3.5.4.0-r1: installed executable or alias match | Alpine Linux edge package indexes: alex-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Lexical analyser generator for Haskell (documentation) | https://www.haskell.org/alex/
- dnf - alex - 3.5.4.0-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: alex from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Tool for generating lexical analysers in Haskell | https://hackage.haskell.org/package/alex
- pacman - alex - 3.5.4.2-1: installed executable or alias match | Arch Linux sync databases: alex from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Lexical analyser generator for Haskell | https://hackage.haskell.org/package/alex
- zypper - alex - 3.5.4.2-1.3: installed executable or alias match | openSUSE Tumbleweed package metadata: alex from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Alex is a tool for generating lexical analysers in Haskell | https://hackage.haskell.org/package/alex


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [wordgrinder](https://pkg.so/zh-hans/brew/wordgrinder/) - Shares pkgdb curated category or tags: cli, productivity, writing.
- [diction](https://pkg.so/zh-hans/brew/diction/) - Shares pkgdb curated category or tags: cli, productivity, writing.
- [tmux](https://pkg.so/zh-hans/brew/tmux/) - Shares pkgdb curated category or tags: cli, productivity.
- [vim](https://pkg.so/zh-hans/brew/vim/) - Shares pkgdb curated category or tags: cli, productivity.
- [himalaya](https://pkg.so/zh-hans/brew/himalaya/) - Shares pkgdb curated category or tags: cli, productivity.
- [yazi](https://pkg.so/zh-hans/brew/yazi/) - Shares pkgdb curated category or tags: cli, productivity.
- [emacs](https://pkg.so/zh-hans/brew/emacs/) - Shares pkgdb curated category or tags: cli, productivity.
- [zellij](https://pkg.so/zh-hans/brew/zellij/) - Shares pkgdb curated category or tags: cli, productivity.
- [alex](https://pkg.so/zh-hans/npm/alex/) - Executable or command metadata overlaps with this package. Shared terms: alex, catch, cli, inconsiderate, insensitive.
- [backlog-md](https://pkg.so/zh-hans/brew/backlog-md/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, node, productivity.
- [fanyi](https://pkg.so/zh-hans/brew/fanyi/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, node, productivity.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
