@blit-sh/bin-gpl

中文文档
0.55.1发布于 2026/08/21GPL-2.0-or-laterTypeScriptESM + CJS零依赖构建来源已验证近 30 天下载 3.9万

Installs the prebuilt GPL (x264) blit binary for your Linux platform; default export is the binary path.

原始使用文档

@blit-sh/bin-gpl

The GPL flavor of the blit binary, distributed via npm. It is the same build as @blit-sh/bin except that software H.264 encodes with x264 (GPL-2.0-or-later) instead of openh264: better compression, and 4:4:4 rather than 4:2:0. Linux only — x64 and arm64, glibc and musl.

Installing it pulls in exactly one prebuilt package for your platform (@blit-sh/bin-gpl-linux-<cpu>[-musl]) through optional dependencies.

The default export is the absolute path to the executable:

const blit = require("@blit-sh/bin-gpl");
require("child_process").spawn(blit, ["open"], { stdio: "inherit" });

There is no blit CLI shim here, so this package can be installed next to @blit-sh/bin. For the GPL binary on your PATH use curl -sf https://install.blit.sh | BLIT_GPL=1 sh.

This binary includes libx264 and is therefore covered by GPL-2.0-or-later. Complete corresponding source: https://github.com/indent-com/blit (x264: https://code.videolan.org/videolan/x264). blit --license prints the exact terms.

版本与发布记录

@blit-sh/bin-gpl 共发布 24 个版本,首次发布于 2026/08/03;过去 12 个月发布了 24 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.55.1latest2026/08/212 个月前
0.55.02026/08/212 个月前
0.54.02026/08/202 个月前
0.53.22026/08/182 个月前
0.53.02026/08/172 个月前
0.52.02026/08/142 个月前

关于 @blit-sh/bin-gpl 的常见问题

@blit-sh/bin-gpl 是什么?

Installs the prebuilt GPL (x264) blit binary for your Linux platform; default export is the binary path.

如何安装 @blit-sh/bin-gpl?

在项目目录运行 npm install @blit-sh/bin-gpl,或使用 pnpm add / yarn add / bun add。

@blit-sh/bin-gpl 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@blit-sh/bin-gpl 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@blit-sh/bin-gpl 需要什么版本的 Node.js?

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

@blit-sh/bin-gpl 可以商用吗?

@blit-sh/bin-gpl 使用 GPL-2.0-or-later 许可。强 Copyleft:分发包含该代码的软件时,整个作品需以兼容的 GPL 许可开源。仅在内部使用、不对外分发时不触发此义务。以上为概括,不构成法律意见,请以许可原文为准。

@blit-sh/bin-gpl 的下载量有多少?

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

@blit-sh/bin-gpl 还在维护吗?

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