@ai-ecoverse/wasm-xz

中文文档
5.8.4-8发布于 2026/10/230BSD AND GPL-2.0-or-later零依赖构建来源已验证近 30 天下载 1.8万

XZ and LZMA compression tools, with xzgrep, xzdiff and xzless.

原始使用文档
文档目录4 节
  1. Licence
  2. 5.8.4-5: xzgrep and xzdiff (homescoop#537; 2026-10-20)
  3. 5.8.4-7: dependencies and xzless (homescoop#1487; 2026-10-2…
  4. 5.8.4-8: peer dependencies (slicc-bios#939; 2026-10-23)

@ai-ecoverse/wasm-xz

XZ Utils 5.8.4 for slicc: xz / unxz / xzcat / lzma / unlzma / lzcat, static liblzma, and xzgrep / xzdiff / xzless scripts.

pnpm add -g @ai-ecoverse/wasm-xz
xz -k file.txt
xzcat file.txt.xz

Licence

0BSD AND GPL-2.0-or-later. liblzma, its headers and xz are 0BSD. The xzgrep, xzdiff and xzless scripts are adapted from GNU gzip and are GPL-2.0-or-later. LICENSE holds upstream's COPYING summary, then the texts of both licences (COPYING.0BSD, COPYING.GPLv2).

5.8.4-5: xzgrep and xzdiff (homescoop#537; 2026-10-20)

xzgrep and xzdiff are commands now. They are #!/bin/sh scripts, so they need @ai-ecoverse/wasm-bash, plus wasm-grep (xzgrep), wasm-diffutils (xzdiff), and wasm-sed and wasm-coreutils (both). Their @xz@ placeholder is substituted now; 5.8.4-1 to -4 shipped it unset. bin/xzless shipped but wasn't a command until 5.8.4-7 (below).

5.8.4-7: dependencies and xzless (homescoop#1487; 2026-10-21)

xzless is a command now. It runs less with a LESSOPEN pipe through xz, which works from @ai-ecoverse/wasm-less 668.0.0-7. The packages the scripts need are dependencies now (peer dependencies since 5.8.4-8, below), so installing wasm-xz pulls them in: wasm-bash, wasm-coreutils (mktemp, expr, rm), wasm-grep (xzgrep), wasm-sed, wasm-diffutils (xzdiff) and wasm-less (xzless). xzmore isn't shipped: it needs a more, and there is none. Use xzless instead.

5.8.4-8: peer dependencies (slicc-bios#939; 2026-10-23)

The packages the scripts call are peerDependencies now, each "*", instead of exact dependencies. 5.8.4-7 pinned wasm-coreutils 9.12.0-13, so next to a top-level 9.12.0-15 npm nested a second, older coreutils under wasm-xz. Now there's one copy of each, the top-level one. npm 7+ and pnpm still install the peers when they're missing, so installing wasm-xz on its own still gives xzgrep, xzdiff and xzless everything they need. The peers aren't optional: without them the scripts fail with command not found.

The range is "*" because homescoop versions look like prereleases (X.Y.Z-N). npm matches a prerelease only against a range bound with the same X.Y.Z: >=9.12.0-13 accepts 9.12.0-15 but rejects the next upstream's 9.13.0-1, and npm install then fails with ERESOLVE. npm accepts any version for "*". The scripts just need the commands on PATH, and any wasm-bash, wasm-coreutils, wasm-grep, wasm-sed or wasm-diffutils has them. The one floor the range can't express: xzless needs @ai-ecoverse/wasm-less 668.0.0-7 or later, the first version that runs its LESSOPEN pipe. With an older wasm-less, less asks whether to show the .xz file as binary. The cert runs with the current versions: wasm-bash 5.3.0-23, wasm-coreutils 9.12.0-15, wasm-grep 3.12.0-8, wasm-sed 4.10.0-6, wasm-diffutils 3.12.0-4 and wasm-less 668.0.0-7.

版本与发布记录

@ai-ecoverse/wasm-xz 共发布 9 个版本,首次发布于 2026/10/01;过去 12 个月发布了 9 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
5.8.4-8latest2026/10/2313 天前
5.8.4-72026/10/2215 天前
5.8.4-62026/10/2215 天前
5.8.4-52026/10/2116 天前
5.8.4-42026/10/1918 天前
5.8.4-32026/10/1720 天前

关于 @ai-ecoverse/wasm-xz 的常见问题

@ai-ecoverse/wasm-xz 是什么?

XZ and LZMA compression tools, with xzgrep, xzdiff and xzless.

如何安装 @ai-ecoverse/wasm-xz?

在项目目录运行 npm install @ai-ecoverse/wasm-xz,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@ai-ecoverse/wasm-sed(*)、@ai-ecoverse/wasm-bash(*)、@ai-ecoverse/wasm-grep(*)、@ai-ecoverse/wasm-less(*)、@ai-ecoverse/wasm-coreutils(*)、@ai-ecoverse/wasm-diffutils(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@ai-ecoverse/wasm-xz 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ai-ecoverse__wasm-xz 是否存在。

@ai-ecoverse/wasm-xz 可以商用吗?

@ai-ecoverse/wasm-xz 使用 0BSD AND GPL-2.0-or-later 许可。声明的许可为 0BSD AND GPL-2.0-or-later,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@ai-ecoverse/wasm-xz 的下载量有多少?

根据 npm 官方下载统计,@ai-ecoverse/wasm-xz 在 2026/10/05 – 2026/11/03 这 30 天内被下载 17,626 次,日均约 588 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ai-ecoverse/wasm-xz 还在维护吗?

最新版本 5.8.4-8 发布于 2026/10/23(13 天前);至今共发布 9 个版本,其中过去 12 个月发布了 9 个;首次发布于 2026/10/01。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。