@farm.js/core

中文文档
0.1.48发布于 2026/11/01MITTypeScriptESM + CJS

The core of Farm.js, the framework for the web and agents

原始使用文档

@farm.js/core

The core of Farm.js, the framework for the web and agents.

See Stability and Support for what this package guarantees.

npm install @farm.js/core

See the Farm.js repository for documentation, examples, and support.

版本与发布记录

@farm.js/core 共发布 159 个版本,首次发布于 2026/07/29;过去 12 个月发布了 159 个版本。

版本发布日期距今
0.1.48latest2026/11/012 天前
0.1.472026/10/313 天前
0.1.462026/10/313 天前
0.1.452026/10/313 天前
0.1.442026/10/313 天前
0.1.432026/10/304 天前

其他发布通道:beta → 0.1.3-beta.0。

关于 @farm.js/core 的常见问题

@farm.js/core 是什么?

Farm.js的核心,web和代理框架

如何安装 @farm.js/core?

在项目目录运行 npm install @farm.js/core,或使用 pnpm add / yarn add / bun add。

@farm.js/core 支持 TypeScript 吗?

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

@farm.js/core 支持 ESM 还是 CommonJS?

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

@farm.js/core 需要什么版本的 Node.js?

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

@farm.js/core 可以商用吗?

@farm.js/core 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@farm.js/core 还在维护吗?

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