pkg.soopen package index

brew / 排名 5107

使用 Homebrew, Nix 安装 xurls

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install xurls

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#xurls

nixpkgs package indexes · pkgs/by-name/xu/xurls/package.nix · 来源: api.github.com

概览

软件包摘要

Extract urls from text

命令和别名

  • xurls

历史

项目历史与用法

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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
xurls可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本2.6.0
管理器更新时间2026-07-25
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:xurls
版本2.6.0
软件包管理器Homebrew
主页https://github.com/mvdan/xurls
仓库https://github.com/mvdan/xurls
最后更新2026-07-25T21:49:10+02:00
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

xurls

nix profile install nixpkgs#xurls
  • normalized package name match
  • 匹配方式:Xurls
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/xu/xurls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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