@bufbuild/license-header

中文文档
0.0.4发布于 2023/09/14Apache-2.0近 30 天下载 8599

Handle license headers

原始使用文档

license-header

A tool to add and update license headers in source code.

Example usage:

$ npm install @bufbuild/license-header
npx license-header --year-range 2023 --copyright-holder "Acme, Inc." --license-type apache

This command will go through all checked-in and unstaged files, and update their license headers.

As an alternative to the command line, license properties can be defined in package.json under "licenseHeader".

版本与发布记录

@bufbuild/license-header 共发布 4 个版本,首次发布于 2023/08/10;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.0.4latest2023/09/143 年前
0.0.32023/08/313 年前
0.0.22023/08/313 年前
0.0.12023/08/103 年前

关于 @bufbuild/license-header 的常见问题

@bufbuild/license-header 是什么?

Handle license headers

如何安装 @bufbuild/license-header?

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

@bufbuild/license-header 支持 TypeScript 吗?

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

@bufbuild/license-header 可以商用吗?

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

@bufbuild/license-header 的下载量有多少?

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

@bufbuild/license-header 还在维护吗?

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