@ask-loft/loft

中文文档
2.3.0发布于 2026/11/06Apache-2.0零依赖构建来源已验证近 30 天下载 1976

Author, check, format and publish a specification in the Loft Specification Format

原始使用文档

Loft

loft authors, checks, formats and publishes a specification in the Loft Specification Format, in a git repository. This package carries the prebuilt loft binary for macOS, Linux and Windows on x64 and arm64.

npm install --save-dev @ask-loft/loft
npx loft init
npx loft check

As git's merge driver for spec/: npx loft merge-driver --install --command "npx --no-install loft".

Installing runs one script, which records in your configuration directory that npm installed loft, so that the update notice names npm install @ask-loft/loft@latest. It never fails an install, and loft works the same when a package manager skips it.

Elsewhere, cargo install loft-cli builds it from source. Documentation, the Format and the source: https://github.com/Ask-Loft/loft.

版本与发布记录

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

版本发布日期距今
2.3.0latest2026/11/061 天前
2.3.0-alpha.5alpha2026/11/052 天前
2.3.0-alpha.42026/11/025 天前
2.3.0-alpha.32026/10/308 天前
2.3.0-alpha.22026/10/299 天前
2.3.0-alpha.12026/10/299 天前

关于 @ask-loft/loft 的常见问题

@ask-loft/loft 是什么?

Author, check, format and publish a specification in the Loft Specification Format

如何安装 @ask-loft/loft?

在项目目录运行 npm install @ask-loft/loft,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 loft,可以用 npx loft 直接运行。

@ask-loft/loft 支持 TypeScript 吗?

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

@ask-loft/loft 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@ask-loft/loft 可以商用吗?

@ask-loft/loft 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@ask-loft/loft 的下载量有多少?

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

@ask-loft/loft 还在维护吗?

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