@d2runewizard/d2s

中文文档
2.0.135发布于 2026/11/01ISCTypeScriptCommonJS零依赖

A maintained fork of @dschu012/d2s focused on Diablo II Resurrected save files, used by and battle-tested in the D2RuneWizard ecosystem and its **[Hero Edit

原始使用文档

d2s - D2R Hero Editor fork

A maintained fork of @dschu012/d2s focused on Diablo II Resurrected save files, used by and battle-tested in the D2RuneWizard ecosystem and its Hero Editor for Diablo II Resurrected.

This fork keeps the familiar parsing and encoding APIs, while fixing edge cases seen in real D2R saves and adding small helpers that make item and character editing safer.

Big thanks to the original project @dschu012/d2s for the foundation. This repo tracks upstream where possible and documents any D2R-specific deviations below.

版本与发布记录

@d2runewizard/d2s 共发布 100 个版本,首次发布于 2025/06/29;过去 12 个月发布了 90 个版本。

版本发布日期距今
2.0.135latest2026/11/012 天前
2.0.1342026/07/263 个月前
2.0.1332026/07/253 个月前
2.0.1322026/04/146 个月前
2.0.1312026/04/116 个月前
2.0.1302026/03/097 个月前

关于 @d2runewizard/d2s 的常见问题

@d2runewizard/d2s 是什么?

维持的叉子 @dschu012/d2s 专注于 《暗黑破坏神II:复活 保存文件,使用和战斗测试中的 D2RuneWizard 生态系统及其英雄编辑

如何安装 @d2runewizard/d2s?

在项目目录运行 npm install @d2runewizard/d2s,或使用 pnpm add / yarn add / bun add。

@d2runewizard/d2s 支持 TypeScript 吗?

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

@d2runewizard/d2s 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@d2runewizard/d2s 可以商用吗?

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

@d2runewizard/d2s 还在维护吗?

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