# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 11.0.1
- **来源摘要:** Catch insensitive, inconsiderate writing
- **主页:** <https://alexjs.com>
- **仓库:** <https://github.com/get-alex/alex>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- alex (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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
## 其他软件包管理器记录

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
