@defra/grants-reporting-publisher

中文文档
1.0.0发布于 2026/11/03OGL-UK-3.0ES Module构建来源已验证近 30 天下载 3739

NPM module for publishing grants reporting events

原始使用文档
文档目录5 节
  1. Usage
  2. Installation
  3. Making changes
  4. Licence
  5. About the licence

grants-reporting-publisher

NPM module for providing validation and publishing capability for grants reporting

Usage

Refer to the Usage Examples for detailed examples of how to publish reporting events.

Installation

npm install --save @defra/grants-reporting-publisher

Making changes

Refer to the contributing documentation.

Licence

THIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:

http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3

The following attribution statement MUST be cited in your products and applications when using this information.

Contains public sector information licensed under the Open Government license v3

About the licence

The Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable information providers in the public sector to license the use and re-use of their information under a common open licence.

It is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.

版本与发布记录

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

版本发布日期距今
1.0.0latest2026/11/038 天前
0.3.12026/11/039 天前
0.3.02026/09/221 个月前
0.2.02026/09/161 个月前
0.1.22026/09/112 个月前
0.1.12026/09/042 个月前

关于 @defra/grants-reporting-publisher 的常见问题

@defra/grants-reporting-publisher 是什么?

NPM module for publishing grants reporting events

如何安装 @defra/grants-reporting-publisher?

在项目目录运行 npm install @defra/grants-reporting-publisher,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 cdp-github-release,可以用 npx cdp-github-release 直接运行。

@defra/grants-reporting-publisher 支持 TypeScript 吗?

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

@defra/grants-reporting-publisher 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@defra/grants-reporting-publisher 需要什么版本的 Node.js?

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

@defra/grants-reporting-publisher 可以商用吗?

@defra/grants-reporting-publisher 使用 OGL-UK-3.0 许可。声明的许可为 OGL-UK-3.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@defra/grants-reporting-publisher 的下载量有多少?

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

@defra/grants-reporting-publisher 还在维护吗?

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