@ai-ecoverse/wasm-pkgconf

中文文档
3.0.10-1发布于 2026/10/26ISC零依赖构建来源已验证近 30 天下载 2232

pkgconf and pkg-config, which give the compiler and linker flags of installed libraries.

原始使用文档

@ai-ecoverse/wasm-pkgconf

pkgconf 3.0.10 for slicc's wasm realm, as pkgconf and pkg-config.

pnpm add -g @ai-ecoverse/wasm-pkgconf
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config --cflags --libs zlib

Coming from pkgconf 2.x

--cflags, --libs, --static, --modversion, --exists (with version constraints), --variable and --define-variable print what they did in 2.5.1 for ordinary .pc files. What changed since pkgconf 3.0:

  • --variable=NAME a b prints the value for every module, space-separated, not only for the first.
  • PKG_CONFIG_<MODULE>_<VARIABLE> in the environment (PKG_CONFIG_ZLIB_PREFIX) overrides that variable of that module.
  • Conflicts: between the modules of one --cflags/--libs/--exists query fail it (PKG_CONFIG_IGNORE_CONFLICTS skips the check).
  • ${pc_sysrootdir} is empty, not /, when no sysroot is set.
  • --list-all and --list-package-names include the built-in pkg-config and pkgconf packages; --print-variables lists in file order.
  • New: --newlines, and the Requires.shared, Cflags.shared, Libs.shared, Link.ABI, Source and License.file fields.
  • Requires chains are followed 256 levels deep by default, pkgconf 3.0's guard against stack exhaustion. Past that, --cflags and --libs exit 0 and leave the deeper modules' flags out, with no warning; 2.x followed the whole chain. --maximum-traverse-depth=-1 (or a larger depth) or PKG_CONFIG_MAXIMUM_TRAVERSE_DEPTH=-1 in the environment follows all of it. Real dependency graphs are far shallower; about 1500 levels deep, -1 runs out of stack in 2.x and 3.x alike (exit 70) (homescoop#532).

See NEWS.

版本与发布记录

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

版本发布日期距今
3.0.10-1latest2026/10/2612 天前
3.0.9-52026/10/2217 天前
3.0.9-42026/10/1920 天前
3.0.9-32026/10/1721 天前
3.0.9-22026/10/1722 天前
3.0.9-12026/10/1622 天前

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

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

pkgconf and pkg-config, which give the compiler and linker flags of installed libraries.

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

在项目目录运行 npm install @ai-ecoverse/wasm-pkgconf,或使用 pnpm add / yarn add / bun add。

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

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

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

@ai-ecoverse/wasm-pkgconf 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

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

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

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

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