# 使用 Homebrew, MacPorts, Nix, winget 安装 sttr

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

## 安装

```sh
sudo av install brew:sttr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sttr
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sttr
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#sttr
```

  证据: nixpkgs package indexes: pkgs/by-name/st/sttr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- winget (92%):

```sh
winget install --id abhimanyu003.sttr -e
```

  证据: Windows Package Manager source index: abhimanyu003.sttr from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:sttr
- **软件包管理器:** Homebrew
- **版本:** 0.2.30
- **来源摘要:** CLI to perform various operations on string
- **主页:** <https://github.com/abhimanyu003/sttr>
- **仓库:** <https://github.com/abhimanyu003/sttr>
- **最后更新:** 2026-07-26T04:03:47+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- sttr (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

sttr is a small cross-platform command-line tool for transforming strings, files, and piped text. Its niche is the everyday terminal toolbox: hashing, encoding, decoding, case conversion, JSON/YAML conversion, and similar text operations without opening a larger editor or scripting language.

### 项目历史

Official README and documentation describe sttr as command-line software for quickly running transformation operations on strings. The project is implemented and distributed as a CLI with interactive, direct-argument, file-input, and pipeline modes.

### 采用历史

Official installation docs list quick shell installation, Homebrew, Go installation, and release binaries; the README also lists Snap, Arch, Docker, Winget, Scoop, X-CMD, Webi, and FreeBSD binaries. The input package facts show Homebrew, MacPorts, Nix, and Winget coverage.

### 使用方式

Common usage is `sttr` for an interactive menu, `sttr md5 "Hello World"` for direct operation, file input such as `sttr base64-encode image.jpg`, pipelines such as `echo "Hello World" | sttr md5`, and chained processors such as base64 followed by md5.

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

Package nerds care about sttr because it condenses a drawer of tiny text filters into one installable binary with shell-friendly input and output. It fits well in Homebrew, Winget, Nix, and other package indexes because it has no credential story and a clear CLI surface.

### 时间线

- Current: Official docs present sttr as a cross-platform CLI with interactive, direct, file, and pipeline usage.
- Current: Official installation docs list package-manager and binary distribution paths across macOS, Linux, Windows, and FreeBSD.

### Related projects

- sttr overlaps with classic Unix text filters, checksum tools, base encoders, JSON/YAML converters, and shell pipelines, but the official sources present it as a single bundled CLI rather than a library framework.

### 来源

- <https://abhimanyu003.github.io/sttr/>
- <https://github.com/abhimanyu003/sttr#readme>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - sttr: normalized package name match | nixpkgs package indexes: pkgs/by-name/st/sttr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - sttr: normalized package name match | MacPorts ports tree: textproc/sttr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - abhimanyu003.sttr: normalized package name match | Windows Package Manager source index: abhimanyu003.sttr from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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