npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@eiriksgata/wc3ts

v3.2.6

Published

TypeScript API for Warcraft III custom maps.

Downloads

148

Readme

WC3TS - Warcraft III 的 TypeScript API

NPM 版本 下载量 许可证

这是一个用于 Warcraft III 自定义地图开发的 TypeScript 库,提供对游戏原生 API 的类型安全绑定。设计为供 TypeScriptToLua 项目作为源码依赖使用。

该项目只是提供接口和类型,并且提供对象封装。具体实现和使用,请参考wc3-map-ts-template

如何使用

-使用wc3-map-ts-template 进行开发,该提供所有的环境集成。

✨ 功能

  • 类型安全:为 Warcraft III API 提供完整的 TypeScript 定义
  • 覆盖全面:包含原生函数、句柄和扩展 API
  • 面向对象:现代化的类封装游戏对象
  • TSTL 兼容:优化用于 TypeScriptToLua 编译
  • 源码库:发布为纯 TypeScript 源码,方便二次编译
  • 扩展 API:支持 DzAPI、JAPI 等扩展
  • 系统工具:二进制 I/O、Base64、文件操作等

安装

npm install @eiriksgata/wc3ts

项目结构

src/
├── handles/        # 句柄封装(Unit、Player、Timer 等)
├── globals/        # 全局常量、FourCC、命令常量等
├── system/         # 系统工具(Base64、文件、二进制等)
├── types/          # 类型声明文件(d.ts)
├── utils/          # 工具函数(颜色等)
└── index.ts        # 主入口

API 概览

提供核心游戏对象和系统工具的类与函数,例如 UnitPlayerTimerTrigger,以及 DzAPI/JAPI 相关的 UI 接口。详情请查看 src/ 源码。

贡献

欢迎贡献!请在 GitHub 上提交 issue 或 PR,保持代码风格和类型安全。

许可

MIT 许可 - 详情见 LICENSE 文件。