# xurls を Homebrew, Nix でインストール

xurls のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:xurls
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install xurls
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#xurls
```

  証拠: nixpkgs package indexes: pkgs/by-name/xu/xurls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:xurls
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/xurls>
- **バージョン:** 2.6.0
- **ソース概要:** Extract urls from text
- **ホームページ:** <https://github.com/mvdan/xurls>
- **リポジトリ:** <https://github.com/mvdan/xurls>
- **ライセンス:** BSD-3-Clause
- **ソースアーカイブ:** <https://github.com/mvdan/xurls/archive/refs/tags/v2.6.0.tar.gz>
- **最終更新:** 2026-07-25T21:49:10+02:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- xurls (cli)
- xurls (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 2.6.0
- マネージャ更新日: 2026-07-25
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/mvdan/xurls
- 検出された最新: v2.6.0 (最新)
## プロジェクトの歴史と使われ方

xurls is Daniel Marti's Go library and CLI for extracting URLs from text with curated regular expressions. It exposes strict and relaxed matchers as Go APIs and ships `cmd/xurls` for shell pipelines.

### プロジェクトの歴史

The GitHub repository was created in January 2015 and grew as a small Go package centered on reusable `regexp.Regexp` values. The README documents the v2 module path `mvdan.cc/xurls/v2`, strict and relaxed matching, cached compiled expressions, and a CLI install path via `go install`.

The release history shows the project adapting to URL edge cases rather than trying to become a full parser: Go modules, internationalized and punycode TLD handling, markdown punctuation cases, large-input CLI fixes, `xurls -fix`, redirect handling, and regular updates to TLD and scheme lists.

### 採用の歴史

xurls is used as both a library and a command because URL extraction from arbitrary text appears in log processing, documentation checks, chat exports, feed cleanup, and static analysis. Its package-manager presence points to a developer-tool audience rather than a large end-user app.

### 使われ方

As a CLI, `xurls` reads text and prints matched URLs for shell pipelines. As a Go package, callers use `xurls.Relaxed()` or `xurls.Strict()` and then call standard `regexp` methods such as `FindString` or `FindAllString`.

### パッケージ好きにとっての重要性

xurls is package-nerd interesting because it packages a messy text-processing convention as a tiny, reproducible Go tool. Its history is mostly a record of edge cases in the public URL ecosystem: new schemes, TLD churn, Unicode, markdown punctuation, email ambiguity, and redirect cleanup.

### タイムライン

- 2015-01-12: GitHub repository created.
- 2018-10-21: v2.0.0 converts the API to Go modules under `mvdan.cc/xurls/v2`.
- 2019-09-22: v2.1.0 improves punycode and markdown-adjacent matching and fixes a large-input CLI crash.
- 2020-04-17: v2.2.0 adds `xurls -fix` and improves non-ASCII TLD matching.
- 2023-04-16: v2.5.0 expands `xurls -fix` behavior and adds a version flag.
- 2025-01-02: v2.6.0 updates schemes/TLDs and refines relaxed matching.

### Related projects

- Go `regexp`: the standard API shape xurls deliberately exposes.
- mvdan.cc/sh and shfmt: other developer tools by the same author.
- Public TLD and URI-scheme data sources: the moving ecosystem xurls periodically tracks.

### ソース

- <https://api.github.com/repos/mvdan/xurls>
- <https://api.github.com/repos/mvdan/xurls/releases?per_page=8>
- <https://github.com/mvdan/xurls>
- <https://pkg.go.dev/mvdan.cc/xurls/v2>
- <https://raw.githubusercontent.com/mvdan/xurls/master/README.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:** xurls
- **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 - xurls: normalized package name match | nixpkgs package indexes: pkgs/by-name/xu/xurls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [uni](https://pkg.so/ja/brew/uni/) - Shares pkgdb curated category or tags: cli, developer-tools, go, text-processing.
- [sttr](https://pkg.so/ja/brew/sttr/) - Shares pkgdb curated category or tags: cli, developer-tools, go, text-processing.
- [m4](https://pkg.so/ja/brew/m4/) - Shares pkgdb curated category or tags: cli, developer-tools, text-processing.
- [oniguruma](https://pkg.so/ja/brew/oniguruma/) - Shares pkgdb curated category or tags: cli, developer-tools, text-processing.
- [fzf](https://pkg.so/ja/brew/fzf/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [hugo](https://pkg.so/ja/brew/hugo/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [golangci-lint](https://pkg.so/ja/brew/golangci-lint/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [gnu-sed](https://pkg.so/ja/brew/gnu-sed/) - Shares pkgdb curated category or tags: cli, developer-tools, text-processing.
- [pk](https://pkg.so/ja/brew/pk/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, extraction, processing.

## Combined YAML source

View the package source record on GitHub. [combined/xurls.yml](https://github.com/mxcl/pkgdb/blob/main/combined/xurls.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
