@freecodecamp/curriculum-helpers

中文文档
9.0.1发布于 2026/05/29BSD-3-ClauseTypeScriptESM + CJS零依赖近 30 天下载 1.4万

Helper functions to test challenges in freeCodecamp's curriculum

原始使用文档

Curriculum Helpers

https://opensource.freecodecamp.org/curriculum-helpers/

BSD-3-Clause © freeCodeCamp.org

Running tests

To run the tests in watch mode, you can use the following command:

pnpm test:watch

This spawns two vitest processes and you can interact with them in the terminal. However, input is passed to the processes in sequence making it tricky to use.

To get a standard vitest interface, you can run the tests separately:

pnpm test:unit --watch
# or
pnpm test:integration --watch

版本与发布记录

@freecodecamp/curriculum-helpers 共发布 57 个版本,首次发布于 2022/07/15;过去 12 个月发布了 5 个版本。

版本发布日期距今
9.0.1latest2026/05/295 个月前
9.0.02026/03/138 个月前
8.0.02026/03/058 个月前
7.3.02026/03/048 个月前
7.2.02025/12/1610 个月前
7.1.02025/10/231.1 年前

关于 @freecodecamp/curriculum-helpers 的常见问题

@freecodecamp/curriculum-helpers 是什么?

Helper functions to test challenges in freeCodecamp's curriculum

如何安装 @freecodecamp/curriculum-helpers?

在项目目录运行 npm install @freecodecamp/curriculum-helpers,或使用 pnpm add / yarn add / bun add。

@freecodecamp/curriculum-helpers 支持 TypeScript 吗?

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

@freecodecamp/curriculum-helpers 支持 ESM 还是 CommonJS?

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

@freecodecamp/curriculum-helpers 可以商用吗?

@freecodecamp/curriculum-helpers 使用 BSD-3-Clause 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。另外不得用原作者名义为衍生产品背书。以上为概括,不构成法律意见,请以许可原文为准。

@freecodecamp/curriculum-helpers 的下载量有多少?

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

@freecodecamp/curriculum-helpers 还在维护吗?

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