@cmsgov/hpt-validator

中文文档
2.6.1发布于 2026/10/26CC0-1.0TypeScriptESM + CJS构建来源已验证近 30 天下载 7169

Validation library for CMS Hospital Price Transparency machine-readable files

原始使用文档
文档目录7 节
  1. Resources
  2. Getting Started
  3. Installation
  4. Testing
  5. Contributing
  6. Security
  7. Public domain

Hospital Price Transparency Validator

Version

Validation library for CMS Hospital Price Transparency machine-readable files

Resources

Getting Started

Installation

npm install @cmsgov/hpt-validator

Testing

npm run test

Contributing

Thank you for considering contributing to an Open Source project of the US Government! For more information about our contribution guidelines, see CONTRIBUTING.md

Security

For more information about our Security, Vulnerability, and Responsible Disclosure Policies, see SECURITY.md.

Public domain

This project is licensed within in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request or issue, you are agreeing to comply with this waiver of copyright interest.

版本与发布记录

@cmsgov/hpt-validator 共发布 12 个版本,首次发布于 2025/07/16;过去 12 个月发布了 11 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.6.1latest2026/10/2614 天前
2.6.02026/08/192 个月前
2.5.02026/06/035 个月前
2.4.02026/04/296 个月前
2.3.02026/04/097 个月前
2.2.02026/02/098 个月前

关于 @cmsgov/hpt-validator 的常见问题

@cmsgov/hpt-validator 是什么?

Validation library for CMS Hospital Price Transparency machine-readable files

如何安装 @cmsgov/hpt-validator?

在项目目录运行 npm install @cmsgov/hpt-validator,或使用 pnpm add / yarn add / bun add。

@cmsgov/hpt-validator 支持 TypeScript 吗?

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

@cmsgov/hpt-validator 支持 ESM 还是 CommonJS?

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

@cmsgov/hpt-validator 可以商用吗?

@cmsgov/hpt-validator 使用 CC0-1.0 许可。作者放弃著作权,可不受限制地使用。以上为概括,不构成法律意见,请以许可原文为准。

@cmsgov/hpt-validator 的下载量有多少?

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

@cmsgov/hpt-validator 还在维护吗?

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