# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/sttr>
- **版本:** 0.2.30
- **来源摘要:** CLI to perform various operations on string
- **主页:** <https://github.com/abhimanyu003/sttr>
- **仓库:** <https://github.com/abhimanyu003/sttr>
- **许可证:** MIT
- **源码归档:** <https://github.com/abhimanyu003/sttr/archive/refs/tags/v0.2.30.tar.gz>
- **最后更新:** 2026-07-26T04:03:47+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- sttr (cli)
- sttr (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.2.30
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/abhimanyu003/sttr
- 检测到的最新版本: v0.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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sttr
- **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

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

- 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


## 相关链接

- [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.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [xurls](https://pkg.so/zh-hans/brew/xurls/) - Shares pkgdb curated category or tags: cli, developer-tools, go, text-processing.
- [uni](https://pkg.so/zh-hans/brew/uni/) - Shares pkgdb curated category or tags: cli, developer-tools, go, text-processing.
- [m4](https://pkg.so/zh-hans/brew/m4/) - Shares pkgdb curated category or tags: cli, developer-tools, text-processing.
- [oniguruma](https://pkg.so/zh-hans/brew/oniguruma/) - Shares pkgdb curated category or tags: cli, developer-tools, text-processing.
- [fzf](https://pkg.so/zh-hans/brew/fzf/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [hugo](https://pkg.so/zh-hans/brew/hugo/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [golangci-lint](https://pkg.so/zh-hans/brew/golangci-lint/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [gnu-sed](https://pkg.so/zh-hans/brew/gnu-sed/) - Shares pkgdb curated category or tags: cli, developer-tools, text-processing.
- [lpad-align](https://pkg.so/zh-hans/npm/lpad-align/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, processing, string.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
